K
K
Konstantin Malyarov2015-12-18 23:40:17
Java
Konstantin Malyarov, 2015-12-18 23:40:17

Is there a class that has a set of certain characters?

I wrote a password generator program, but I indicated a set of numbers, large and small letters through an array.
Is there a class that has a method that returns a set of numbers 0-9 and letters az, AZ.
Type class Symbols:
Symbols.numbers() - returns numbers from 0-9 of type int, well, or something like that.
And then these three arrays look very bulky.

String[] number = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
String[] maxletter = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "V", "X", "Y", "Z"};
String[] minletter = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "v", "x", "y", "z"};

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2015-12-19
@fshp

character

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question