Java Prime Numbers Code Help!?

Answer //You should call the java.math.BigInteger.isProbablePrime method to determine if a number is prime or radix=10;//The base numbering system 10 if decimalint certainty=1;//The level of... Read More »

Top Q&A For: Java Prime Numbers Code Help!

Textpad java compiling and running code help?

Please just use an IDE, trust me, it will save you a whole lot of headaches and pains. Use either Eclipse or Netbeans or JGrasp. But I recommend Eclipse or Netbeans because they have indentation of... Read More »

Hello, I need help with code for a Java project.?

That is a classic textbook assignment. I cannot find my favorite example. Below link is from the Sun Community Forums. Over 5 pages.The example I was looking for has a while loop until everybody sa... Read More »

What is the error in this code #Java Please Help?

I think, though I do not really know that the problem is with this line.PrintWriter outputStream = new PrintWriter("new.txt");Every time you call the method traverseNodes() you set outputStream to ... Read More »

Need Help with Java Code problem is with the math?

Your first calculation should be the correct one, since yes, you do need powers.However, you're printing the result of the second, wrong calculation.This should work:> double total = investment * M... Read More »