Is there a way to give names to row and column of a 2D array in Java?
arrays, java
Solution
No you can't. 2D array is just array of arrays. You'll need to have 2 other arrays with names for columns and rows
Probably you can use something different (another data structure like Map) if you need to.
Problem
I google it before, the answer was no but I wonder if there is any possible way. Is there a way to give names to row and column of a 2D array in Java?