fork download
  1. /* Name of the class has to be "Main" only if the class is public. */
  2. class Ideone
  3. {
  4. public static void main (String[] args) {
  5. double gpa;
  6. gpa = 4.0;
  7. if (gpa >= 3.5);
  8. then
  9. system.print.ln("Deans list");
  10. if (gpa =< 2.00 );
  11. then
  12. system.print.ln("Academic Probation");
  13. }
  14. {
  15.  
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:9: error: ';' expected
		system.print.ln("Deans list");
		      ^
Main.java:10: error: illegal start of type
		if (gpa =< 2.00 );
		           ^
Main.java:10: error: illegal start of expression
		if (gpa =< 2.00 );
		                ^
Main.java:10: error: ')' expected
		if (gpa =< 2.00 );
		                 ^
Main.java:12: error: ';' expected
		system.print.ln("Academic Probation");
		      ^
Main.java:12: error: variable declaration not allowed here
		system.print.ln("Academic Probation");
		^
6 errors
stdout
Standard output is empty