View RSS Feed

Recent Blogs Posts

  1. String Length

    by , 04-26-2012 at 07:26 PM
    An objectís information is seeked by certain methods and those methods are named as accessor methods. Among them, one that could be used along with strings is known as length() method that would be returning no. of characters present in string object.
    Java Code:
    public class StringDemo{
       public static void main(String args[]){
          String palindrome = "Dot saw I was Tod";
          int len = palindrome.length();
          System.out.println( "String Length