User Profile
Collapse
-
aren't the other variables set within the employee class? or do they need to be set within the first line of the make object? I've tried to read through java's descriptions, but they didn'r realy help much. -
Help with getting correct output
Have a program that is to take a persons name, hours worked, rate of pay, fed and state taxes, and combine them to get a net pay. However, most of the calculations will be done in a separate class file. main file looks like
Code:Scanner scanner = new Scanner(System.in); boolean end = false; // is the input name stop? while (end == false) // as long as end is false, proceed
-
-
I was trying that but the break wasn't working. I ended up replacing the name.toLowerCas e with name.contentsEq uals() which allowed it to work.Leave a comment:
-
I'm pretty new to this. Could you give me an example on how to use the command?Leave a comment:
-
Problem exiting program with if statement
Writing a program that is to end when "stop" is entered in the name field during execution. However, I cannot seem to get it to do so. Code is below:
Code:public static void main(String[] args) { // TODO code application logic here Scanner scanner = new Scanner(System.in); String cleanInputBuffer; boolean end = false; // is the input
No activity results to display
Show More
Leave a comment: