Glad you've got it working!
--- Update ---
I think that the key to understanding why it didn't work before, is that the variable, grade, located within the calculateGrade method is not the same...
Type: Posts; User: curmudgeon
Glad you've got it working!
--- Update ---
I think that the key to understanding why it didn't work before, is that the variable, grade, located within the calculateGrade method is not the same...
I'll put the effort in for you this time since you're new, but this is what I mean by formatting:
import java.io.*;
import java.util.*;
import java.lang.String;
public class Grade {
...
Oh, the code, especially the indenting and use of whitespace. Indentations should be uniform and consistent. Please note that the forum software works best if you use spaces, not tabs, and often the...
I'm going to ask you to fix this now. The reason you format your code is to make it easier for others to read and understand. Since you're asking volunteers to do just that, to read and understand...