language: C (gcc-4.7.2)
date: 192 days 14 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import javax.swing.JOptionPane;
 
public class apples {
 
  public static void main(String[] args) {
 
      
          String myName;
          int checker;
          myName = JOptionPane.showInputDialog("Please enter your name");
          checker = JOptionPane.showConfirmDialog(null, "Are you sure your name is: "+ myName);
         if (myName == ""){
                  JOptionPane.showMessageDialog(null, "No name entered", "Error", JOptionPane.ERROR_MESSAGE);
         }
                if(checker == JOptionPane.NO_OPTION){
                  JOptionPane.showMessageDialog(null, "please start again and enter your proper name","work bitch",JOptionPane.INFORMATION_MESSAGE);
          }else{
          JOptionPane.showMessageDialog(null, "Your name is: " + myName);
          }
  }
}
 
prog.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘javax’
prog.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘class’