fork download
  1. import javax.swing.JOptionPane;1
  2. public class DialogApp
  3. {
  4. public static void main(String[] args)
  5. {
  6. String s;
  7. s = JOptionPane.showInputDialog7
  8. ("Enter an integer:");8
  9. int x = Integer.parseInt(s);9
  10. System.out.println("You entered " + x + ".");10
  11. }
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: \10141
import javax.swing.JOptionPane; ?1
                                ^
Main.java:7: error: illegal character: \10141
 s = JOptionPane.showInputDialog ?7
                                 ^
Main.java:8: error: illegal character: \10141
 ("Enter an integer:"); ?8
                        ^
Main.java:8: error: not a statement
 ("Enter an integer:"); ?8
                         ^
Main.java:8: error: ';' expected
 ("Enter an integer:"); ?8
                          ^
Main.java:9: error: illegal character: \10141
 int x = Integer.parseInt(s); ?9
                              ^
Main.java:9: error: not a statement
 int x = Integer.parseInt(s); ?9
                               ^
Main.java:9: error: ';' expected
 int x = Integer.parseInt(s); ?9
                                ^
Main.java:10: error: illegal character: \10141
 System.out.println("You entered " + x + "."); ?10
                                               ^
Main.java:10: error: not a statement
 System.out.println("You entered " + x + "."); ?10
                                                ^
Main.java:10: error: ';' expected
 System.out.println("You entered " + x + "."); ?10
                                                  ^
11 errors
stdout
Standard output is empty