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

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());
    }
}




No comments:

Post a Comment