fork download
  1. import java.util.Scanner;
  2.  
  3. public class MyBabySActivitySchedule {
  4. static Scanner input = new Scanner(System.in);
  5. public static void main(String[] args) {
  6.  
  7. Test();
  8. }
  9.  
  10. public static void Test(){
  11. int x= input.nextInt();
  12. System.out.println(x);
  13. }
  14. public static void Eyoel(int x){
  15.  
  16. if( x == 10 && x == 12 && x == 2 && x == 4){
  17. System.out.println("Time to sleep");
  18.  
  19. }else{
  20. System.out.println("Time to play and other activities");
  21. }
  22. }
  23. }
  24.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:3: error: class MyBabySActivitySchedule is public, should be declared in a file named MyBabySActivitySchedule.java
public class MyBabySActivitySchedule {
       ^
1 error
stdout
Standard output is empty