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