File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes lastIndexOf() method doubt?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "lastIndexOf() method doubt??" Watch "lastIndexOf() method doubt??" New topic

lastIndexOf() method doubt??

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10031

Hi Guys,

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!
Ignacio Cavero

Joined: Dec 10, 2006
Posts: 4
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

I agree. Here's the link:
subject: lastIndexOf() method doubt??
It's not a secret anymore!