fork download
  1. import java.io.*;
  2. public class grade{
  3. public static void main(String args[])throws IOException{
  4.  
  5.  
  6. int point = Integer.parseInt(in.readLine());
  7.  
  8. if(point >= 90){
  9. System.out.println("Grade: A");
  10. }
  11.  
  12. else if(point >= 80){
  13. System.out.println("Grade: B");
  14. }
  15.  
  16. else if(point >= 70){
  17. System.out.println("Grade: C");
  18. }
  19.  
  20. else if(point >= 60){
  21. System.out.println("Grade: D");
  22. }
  23.  
  24. else{
  25. System.out.println("Grade: F");
  26. }
  27.  
  28. }
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
90
compilation info
Main.java:2: error: class grade is public, should be declared in a file named grade.java
public class grade{
       ^
1 error
stdout
Standard output is empty