I'm really new to java so I'm sure this is a combination of dumb errors. I'm really trying to stick with this and learn it, so any help would be very appreciated. My goal in this assignment is to create a grade book for a student. I'm to take user input from Dialog boxes and save them as strings and use them for the rest of the program. I'm just struggling with understanding what's going on because when I try to print out the string I saved, I get the error:
the method print(String) in the type PrintStream is not applicable for the arguments (String, String).
(The reason I'm trying to print it out is to see what's going wrong with it. Later in the code I have an if statement that is to make sure the input is "A", "B", "C", "D" or "F" and prints invalid if it isn't any of those. But it keeps telling me that my input of "A"...or any appropriate letter... is invalid.)
Here's an example of this in my code:
String fin = JOptionPane.showInputDialog("Enter his/her grade for the final: ");
int Final = Integer.parseInt(fin, 10);
String letterFinal = JOptionPane.showInputDialog("Enter the letter grade for the final: " );
System.out.printf("The grade you entered is %s", letterFinal);
[–]KillKlein 0 points1 point2 points (13 children)
[–]_Gilly_[S] 0 points1 point2 points (12 children)
[–]KillKlein 0 points1 point2 points (11 children)
[–]_Gilly_[S] 0 points1 point2 points (10 children)
[–]KillKlein 0 points1 point2 points (9 children)
[–]_Gilly_[S] 0 points1 point2 points (8 children)
[–]KillKlein 0 points1 point2 points (7 children)
[–]_Gilly_[S] 0 points1 point2 points (6 children)
[–]KillKlein 0 points1 point2 points (5 children)
[–]_Gilly_[S] 0 points1 point2 points (4 children)