Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

the isPrime method in java.

Name: Anonymous 2006-10-17 1:20

Write a method name isPrime, Which takes an integer as an argument and returns true if the argument is a prime number,or false otherwise.

what i dont understand about what it is asking me to do though is whether i should actually type in a random number while the program is running or should i have it read from a simple txt. file. and if i do have to type in a random number lets say 5 it would return true, but am i supposed to program that 5 into the code for it to be able to recognize it as a prime number or is that already determinded with the isPrime method?

I started learning Java only recently... so far coding has interested me a lot but the way that java fuckin does things is just so... fuckin annoying... i now understand why you guys flame it so much sometimes.

any advice on what i should do about this java thing would be really appreciated.

Name: Anonymous 2006-10-17 2:36

>>1
and if i do have to type in a random number lets say 5 it would return true, but am i supposed to program that 5 into the code for it to be able to recognize it as a prime number or is that already determinded with the isPrime method?
This thread is LOL. Anonymous doesn't even know what a prime number is.

Trust me pal, as much as Java sucks, the problem is not Java.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List