add random sentence

This commit is contained in:
Orange 2016-11-14 17:34:22 +01:00
parent 21af98e43f
commit d3837d3c1b
1 changed files with 2 additions and 1 deletions

View File

@ -7,5 +7,6 @@ public class SiListener implements ActionListener{
public void actionPerformed(ActionEvent event){
Random rand = new Random();
String str[] = {"Grazie per aver venduto la sovranità popolare", "Radical chic di sto c@zzo", "Sei appena entrato in dittatura"};
JOptionPane.showMessageDialog(null, str[rand.nextInt(3)]); }
JOptionPane.showMessageDialog(null, str[rand.nextInt(3)]);
}
}