Logo 
Search:

Java Articles

Submit Article
Home » Articles » Java » Homework HelpRSS Feeds

Program to declare, initialize and print a StringBuffer object

Posted By: Tarron Thompson     Category: Java     Views: 6994

A Java Program to declare, initialize and print a StringBuffer object.

Code for Program to declare, initialize and print a StringBuffer object in Java

publicclass JAVA_056
 {


    publicstaticvoid main(String[] args)
    {
       StringBuffer Sb=new StringBuffer("This is a StringBuffer Object!");

       System.out.println(Sb);
    }
 }
  
Share: 



Tarron Thompson
Tarron Thompson author of Program to declare, initialize and print a StringBuffer object is from Perth, Australia.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!