import javax.swing.JOptionPane;
public class Lautturi {
public static void main(String[] args) {
int max;
String num1Str = JOptionPane.showInputDialog("Please enter an integer: ");
String num2Str = JOptionPane.showInputDialog("Please enter another integer: ");
int num1 = Integer.parseInt(num1Str);
int num2 = Integer.parseInt(num2Str);
max = Math.max(num1, num2);
JOptionPane.showMessageDialog(null, "Max: " + max);
}
}