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.
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.