samedi 21 octobre 2017

I want to use input variable which is initialized in 'if' condition to outside this condition

I have some condition and in this condition I want to take input from user. But I also want to use this input outside this condition. I declare variable outside 'if' but I need its initialization in condition. So, is there anyway to use this outside in java or not?

Aucun commentaire:

Enregistrer un commentaire