Changed println to JOptionPane, removed input method