Is it possible to create a 2d array in java, such the column and row names are letter-characters and we can access like array[E][*] = ... ?
Here we can't use map because Map corresponds to 1-D array. So what will be the other alternatives ?
As you said in the comments that Map corresponds to 1D array, why not use Map of Maps.
Map<Character,Map<Character,Character>> outerMap = new HashMap<Character, Map<Character, Character>>();
and use a simple method to fetch your data:
public char getValue(char row ,char column, Map<Character,Map<Character,Character>> outerMap) {
return outerMap.get(row).get(column);
}
Good Luck!
(letter - 'a')if it is a lowercase letter, and(letter -'A')if it is an uppercase letter.