Enter your E-mail Address below for Free E-mail Alerts right Into your Inbox: -

Showing posts with label String Buffer. Show all posts
Showing posts with label String Buffer. Show all posts

Tuesday

How to find the length of StringBuffer sample Program

How to find the length of StringBuffer sample program



public class Sample {

    public static void main(String args[])
    {
   StringBuffer sb = new StringBuffer("This is my first sample program");
   System.out.println("The length of the string buffer is: "+sb.length());
    }
}