Java Blog

 
 
 
 public class JAVA_044
 {
    public static void main(String[] args)
    {
       String String_1=\"Many \";
       String String_2=\"hands \";
       String String_3=\"make light work\";

       String String_4;

       String_4=(String_1+String_2+String_3);

       System.out.println(String_4);

       int nHands=99;

       String_4=(nHands + \" \" + String_2 + String_3);

       System.out.println(String_4);

       String_4=(\"fifty five is \" + 5 + 5);

       System.out.println(String_4);

       String_4=( 5.5 + 5 + \" is ten point five\");

       System.out.println(String_4);
    }
 }

 
 
Didn't find what you were looking for? Find more on Program to show an example of Concatination of Strings