0
You know that initial Pokemon conversation?
"Welcome to the world Pokemon" - ENTER
"Are you a girl or a boy?" -Enter
CONTINUES....
So, I’m trying to do a Java swing, at the moment it’s like this:
private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
jLabel1.setText(mudarTexto());
//i++;
}
public String mudarTexto(){
//jTexto.setText("Olá,bem vindo ao mundo pokémon");
int i = 0;
switch(i){
case 0:
c ="oi";
case 1:
c = "Olá,bem vindo ao mundo pokémon";
case 2:
c = "Você é garoto ou garota?";
case 3:
c = "aa";
default:
c = "c";
}
return c ;
}
But the switch
don’t read mine i
as zero , it only prints the last instruction of the switch that in the case is default, if the last one was case 3, then it would be printable, how can I solve this problem?
po, vdd, vlw there
– Dr.G
@Dr.G good that helped. You can also mark the answer as accepted, to serve as reference for other people :)
– user28595