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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With