Can somebody help me how the lastIndexOf operator with and without offset works??? Regards, Sushma
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Sushma, 1. s.lastindexof(int ch) returns a value k where k is the largest possible value and <= s.length and s.charAt(k) = ch 2. s.lastindexof(int ch, int offset) returns a value k where k is the largest possible value and <= offset and s.charAt(k) = ch
Originally posted by Sushma: Can somebody help me how the lastIndexOf operator with and without offset works??? Regards, Sushma
Sushma
Ranch Hand
Joined: Feb 24, 2000
Posts: 36
posted
0
Thanks a lot QTE Reddy.....that was really very helpful. Sushma