i m performing
on one of my arraylist , the array list has 5
word in it say
like
0 cs1 HeadFirstJava-2ndEdition2 Herbert_Schildt_-_Java_2_The_Complete_Reference3 New folder4 os by galvin5 sample q's
when i m entering input say the words which are at index position 2 , 3 , 4 , 5 it gives me the right answer but when i enter word which at index 0 , 1 for 0 it gives -5 and for index 1 it gives -1
but i know why it is giving me this because he is not able to find the word in a list but i know this word are there in the list
what can i do to correct this ?
i know i can perform some math thing to get the right answer on this but without math can i get the right answer ?