fork download
  1. // HW1 - Gabriele Biondo - CS113-003 //
  2. import java.util.Scanner;
  3. //Problem #1 //
  4.  
  5. public class Ideone
  6. {
  7. public static void main (String[] args)
  8. {
  9. int eggs;
  10. float money;
  11.  
  12. Scanner scan = new Scanner(System.in);
  13.  
  14. System.out.println("Number of eggs in order:");
  15.  
  16. eggs = scan.nextInt();
  17.  
  18.  
  19.  
  20. System.out.println("You ordered " + eggs + " eggs.");
  21.  
  22. }
  23. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:5: error: class Ideone is public, should be declared in a file named Ideone.java
public class Ideone
       ^
1 error
stdout
Standard output is empty