![]() |
Problema con parseInt |
Post Reply ![]() |
Author | |
Pietrotom ![]() Nuovo Utente ![]() ![]() Joined: 24/Dic/2013 Location: Italy Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 24/Dic/2013 at 11:52 |
Ciao, voglio fare uno scherzo a un mio amico ma non riesco a far funzionare questo programma (sto usando il file frame di netbeans)
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String testo = schermo2.getText(); String pass = schermo3.getText(); int a; int b; a = Integer.parseInt(testo); b = Integer.parseInt(pass); if ((a == Integer.parseInt(testo))==true || (b == Integer.parseInt(pass))==true) { barra.setValue(100); schermo1.setText("Process Completed: The amount has been added"); } else { schermo1.setText("Insert Password/Email"); } |
|
![]() |
|
Sponsored Links | |
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |