From d3837d3c1bff28d837776011603c5b9d87438fcf Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 14 Nov 2016 17:34:22 +0100 Subject: [PATCH] add random sentence --- src/Referendum/SiListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Referendum/SiListener.java b/src/Referendum/SiListener.java index e3cb618..e833ffe 100644 --- a/src/Referendum/SiListener.java +++ b/src/Referendum/SiListener.java @@ -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)]); + } } \ No newline at end of file