0
[JAVA 2D ARRAY] How to return last column?
I have two different arrays which are instantiated in two different child classes. I need to make a method in the abstract parent class to query the array depending on which array the user selects. Each array is a different size so I donāt want to put a set index for the method. Iām guessing Iāll need a loop to keep going through the indexās and then stopping the loop and returning the final index. P.s Iām not interested about the element inside, only want to return last column index. Thanks appreciate your help.
2 Answers
0
~ swim ~ I just want to return the index number nothing else. Iām not sure how to tackle this as Iām only 5 weeks in Java so far.