fork download
  1.  
  2. import javax.swing.JOptionPane;
  3. public class Q1 {
  4.  
  5. public static void main(String[] args) {
  6. String firstNumber = JOptionPane.showInputDialog("First");
  7. String secondNumber = JOptionPane.showInputDialog("Second");
  8. System.out.println(firstNumber+secondNumber);
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
10
aba
geeksforgeeks
geeksforgeeks
geeksforgeeks
geeksforgeeks
geeksforgeeks
geeksforgeeks
geeksforgeeks
geeksforgeeks
geeksforgeeks
compilation info
Main.java:3: error: class Q1 is public, should be declared in a file named Q1.java
public class Q1 {
       ^
1 error
stdout
Standard output is empty