fork download
  1. public class ExamTester {
  2. public static void main (String[] args){
  3.  
  4. int a = 0;
  5. int b = 0;
  6. if ((a == 1) | (a == b++)){
  7. System.out.println(b);
  8. }else{
  9. System.out.println(b);
  10. }
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class ExamTester is public, should be declared in a file named ExamTester.java
public class ExamTester {
       ^
1 error
stdout

Standard output is empty