fork(3) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. System.out.println("КОФЕ МАШИНА");
  13.  
  14. Integer moneyAmount = 150;
  15.  
  16. Integer lattePrice = 22;
  17. Integer poiePrice = 40;
  18. Integer lotuPrice = 50;
  19.  
  20. boolean canBoyAnything = false;
  21.  
  22. if(maneyAmount >= lattePrice) {
  23. System.out.println("вы можете купить латте");
  24. canBoyAnything = true;
  25. }
  26.  
  27. if(maneyAmount >= poiePrice) {
  28. System.out.println("вы можете купить пой");
  29. canBoyAnything = true;
  30. }
  31.  
  32. if(maneyAmount >= lotuPrice)
  33. System.out.println("вы можете купить лоту");
  34. canBoyAnything = true;
  35. }
  36.  
  37. }
  38. }
Compilation error #stdin compilation error #stdout 0.04s 2184192KB
stdin
Standard input is empty
compilation info
Main.java:38: error: class, interface, or enum expected
}
^
1 error
stdout
Standard output is empty