The file: https://github.com/TheAlgorithms/Java/blob/master/Others/PasswordGen.java
The current code doesn't always generate passwords that follow the policy of passwords which are at least 1 lower, 1 upper, 1 number, and 1 special character in your password.
I am attaching an example of one such password generated by the current code.

This password has no number in this password which violates the rules.
Can I work on solving this issue?
The file: https://github.com/TheAlgorithms/Java/blob/master/Others/PasswordGen.java
The current code doesn't always generate passwords that follow the policy of passwords which are at least 1 lower, 1 upper, 1 number, and 1 special character in your password.
I am attaching an example of one such password generated by the current code.
This password has no number in this password which violates the rules.
Can I work on solving this issue?