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.