Could anyone tell me why this loop of mine only run once? So this would run if the user select option "2", the passLength is the length the user input in. I choose 3 as an input, won't let mean my while loop will be running 3 time? As you can see, I put a println there so it print everytime it run, but I only get 1 output.
String LowerUp=""; int randomLowUp = 91; if(UserInput.equals("2")) for(int LowerLAmount = 1; LowerLAmount <= passLength;LowerLAmount++) { while(randomLowUp > 90 && randomLowUp < 97) {randomLowUp = 0; randomLowUp = (int)((Math.random()*(57))+(65)); LowerUp += (char)(randomLowUp); System.out.println (LowerUp); } }