Need Help with Java Code problem is with the math?

Answer 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 »

Top Q&A For: Need Help with Java Code problem is with the math

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 »

Help with Java programming problem?

I just googled "java length of string" and it brought me to this page. That's all you have to do, and I found a link to the java documentation of the string class. Read More »

I need help with java?

User input is stored in "input" variable.For checking the numbers:-if(input.matches(".*\\d.*")){ // contains a number} else{ // does not contain a number}For checking underscore (_):-if(input.i... Read More »

Need help with java programing ! i want to some outline please help?

public class Doctor { // Class Variables String strDrSpecialty; double dblFee; // Constructor public Doctor(String strDrSpecialty, double dblFee) { this.strDrSpecialty = strDrSpecialty; this.dbl... Read More »