I/O con JOptionPane
Input/output con GUI import javax.swing.JOptionPane; public class IO { public static void main(String[] args) { // input String stringa = JOptionPane.showInputDialog(“Inserisci un intero”); int x = Integer.parseInt(stringa); // elaborazione // … // output … Leggi tutto