title: Java password generator
body: <p>I am trying to create a java program that creates a password, either all lowercase, lowercase and uppercase, lowercase and uppercase and numbers, lowercase and uppercase and numbers and punctuation and the program also has to create one of those password that the user picks and and has to generate a password length according to what the user picks. I have already generated the password options for the user to pick from and have prompted him to pick one. I am now stuck on how to create the password types that were mentioned above. One person suggested me to use ASCII values and then converting them to text. I know how to convert them to text, but it will display number, letters, and punctuations. Is there any way that I can just generate ASCII values for just lowercase letters? Also how will I generate a password according to the user's length that they give?</p>