This project is inspired by the same backend developer project portfolio [[backend developer projects]]
This project will generate random password only with alphabets, user needs to enter a number and it will create password
FEATURES
hassle free way of creating a random password, use this service to create password
TODO
Create basic hello world program
Give option to the user to enter the number of characters in the password
Generate random word for the given length
More features and issues are added in the issues section, follow that and provide yout inputs
How to Run
javac RandomPasswordGenerator.java
java RandomPasswordGenerator
Learnings
Random Number
Randomr = newRandom();
intx = r.nextInt(25);
//above code will generate random number from 0 to 25
ASCII Values
ASCII Value : a --> 97
ASCII Value : A --> 65
convert character to string :
// Method #1StringstringValueOf = String.valueOf('c'); // most efficient// Method #2StringstringValueOfCharArray = String.valueOf(newchar[]{x});
// Method #3StringcharacterToString = Character.toString('c');
// Method #4StringcharacterObjectToString = newCharacter('c').toString();
// Method #5// Although this approach seems very simple, // this is less efficient because the concatenation// expands to a StringBuilder.StringconcatBlankString = 'c' + "";
// Method #6StringfromCharArray = newString(newchar[]{x});