I'm basically trying to build a random password generator in Java. I'm trying to build it using a char array, basically:
char[] password = new char[8]
I want to be able to include "special" characters in this array (such as @, $, *, etc). Can these characters be placed in a char array, and if so, how?
Chartype in Java. There ischarorCharacter.'like'a'so you can place them in array just like you normally place any element.SecureRandominstead of simpleRandom. It does make a difference.