I've a char array:
private char[] chars = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890-_".toCharArray();
I want get a Map
when key is char symbol and value is index this char in array. Like this:
{q=0, w=1,....}
I want use a Stream api
:
Map<Character, Integer> charToInt = IntStream.rangeClosed(0, chars.length)
But I do not understand what to do next