JOpionPana
This commit is contained in:
parent
04b079a359
commit
c4f46020d8
BIN
src/JoptionPane/Ese1.class
Normal file
BIN
src/JoptionPane/Ese1.class
Normal file
Binary file not shown.
8
src/JoptionPane/Ese1.java
Normal file
8
src/JoptionPane/Ese1.java
Normal file
@ -0,0 +1,8 @@
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
public class Ese1{
|
||||
public static void main(String [] args){
|
||||
JOptionPane.showMessageDialog(null, "Salve mondo");
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
BIN
src/JoptionPane/Ese2.class
Normal file
BIN
src/JoptionPane/Ese2.class
Normal file
Binary file not shown.
11
src/JoptionPane/Ese2.java
Normal file
11
src/JoptionPane/Ese2.java
Normal file
@ -0,0 +1,11 @@
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
public class Ese2{
|
||||
public static void main(String [] args){
|
||||
String name = JOptionPane.showInputDialog("Come ti chiami?");
|
||||
System.out.print("Ciao, ");
|
||||
System.out.print(name);
|
||||
System.out.print("!");
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user