Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Odd

Language: Layout:
+ ] Show input
Compilation time: 1.04 sec, absolute service time: 1,17 sec 
edit mode |  history  | discussion
Error(s), warning(s):
source_file.java:4: error: class, interface, or enum expected
Import Java.util.Scanner;
^
source_file.java:5: error: class, interface, or enum expected
Class OddOreven
^
source_file.java:10: error: class, interface, or enum expected
System.out.println(" Enter an integer to check even or odd:");
^
source_file.java:11: error: class, interface, or enum expected
Scanner in = new scanner(system.in)
^
source_file.java:13: error: class, interface, or enum expected
If(x%2==0);
^
source_file.java:14: error: class, interface, or enum expected
System.out.println("the no is even");
^
source_file.java:15: error: class, interface, or enum expected
else
^
source_file.java:17: error: class, interface, or enum expected
}
^
8 errors