Monday, 11 March 2013

36.. program for find last index of word in string in java



class last
{
            public static void main(String args[])
            {
                        String s="This is Aditi";
                        System.out.println(s.lastIndexOf('i'));
                        System.out.println(s.toUpperCase());
                        System.out.println(s.toLowerCase());
            }
}

No comments:

Post a Comment