File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

lastIndexOf() method doubt??

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Ignacio Cavero
Greenhorn

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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: lastIndexOf() method doubt??
 
Similar Threads
String parsing
Detecting 2 periods in 1 String
collection question from nikos...
how to get filename without extension
Image extension and mimetype