Program to concatenates three strings

/* Program to concatenates three strings */

class StringDemo3
{
    public static void main(String args[ ])
    {
        String name = "Indira";
        String str="Her name is "+name+" Gandhi.";
        System.out.println(str);
    }
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|