I am currently taking java and Im trying to learn how to write methods. I want to know learn the best way that I can learn how to read/write methods in a code. Im currently writing a code using lastindexOf. I do understand that im using this to (lets say i have and array)find the last object of the same in that array, but I don't understand how to write this. Please help me too understand what Im doing!!! thanks alot and in advance I do appreciate any help anyone can give me.