first commit

This commit is contained in:
LinlyBoi
2021-11-06 23:35:03 +02:00
commit 63ba32bb3c
27 changed files with 498 additions and 0 deletions

9
guiexample.java Normal file
View File

@@ -0,0 +1,9 @@
import javax.swing.JOptionPane;
class Scratch {
public static void main(String[] args) {
String name = JOptionPane.showInputDialog("What is your name?");
JOptionPane.showMessageDialog(null,"Hello "+name);
int age = Integer.parseInt(JOptionPane.showInputDialog("Enter your mental age"));
JOptionPane.showMessageDialog(null,"Your mental age is "+age);
}
}