Can anyone please explain me with an example the principle of lastIndexOf() method and how it works??
Thanks in advance.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
posted 10 years ago
I suppose you are talking of the method of the List interface which returns the last index of the specified object (you can have the same object multiple times in a List, something that can't be done on a Set). I did a test code to show you, I was testing enums so I reused that code for this example, hope you are not using 1.4