Using java to get a string output
My program pretends to get an output ( a string of data) always that I'm sending a string with values ( such as BCI, BCH ... ). In my program I've set a dialog box where I will send the values ( BCI, or BCH , ou even others). I'm expecting to receive "angola" if I send value "BCI" to the program; I'm expecting to receive "testef" if I send value "BCH" to the program; However I'm not getting there.. Here is my code : ------------------------------------------------------ import javax.swing.JOptionPane; public class Passwords1 { public static void main(String[] args) { String BCI; String BCH; String Resposta; BCI = "angola"; BCH = "testef"; Resposta = JOptionPane.showInputDialog(null, "Teste banco?a " ); if( Resposta.equals("BCI") ); { JOptionPane.showMessageDialog(null, BCI );} if ( Resposta.equals("BCH")) { JOptionPane.showMessageDialog(null, BCH );} } }