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

    Related Post:
  1. Program to extract a portion of a character string and print the extracted string

  2. Corba program to encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time.

  3. Program to show an example of creating String objects from Character Arrays

  4. Program to append a StringBuffer by StringBuffer, String objects and other Basic Data Types

  5. Program to compare Strings by compring successive corresponding characters, starting with the first character in each String

  6. Program to show an example of Multiple Levels of Inheritance

  7. Program for calculating area of a circle on server side,when a client sends request along with given radius and then displaying result on client side

  8. Simple Applet which will show life cycle of an Applet

  9. Program in CORBA which takes a long sentence from the client (at least 7 words), passes to the server, server separates out each word

  10. Program which creates an Array of character. Make one function with one argument as a character and that function throw a user defined exception

  11. Program to represent a bank account

  12. Program to show an example of creating a class and using its object

  13. Encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time after each word in the sent

  14. RMI program of count server and client

  15. Program that accepts a shopping list of items from the command line and stores them in a vector. Also provide facility to perform operation

  16. Program of UDP news server

  17. An applet program of passing parameters

  18. An applet program to perform merge sort

  19. File handling program to count number of characters in a file

  20. Program to generate SQUARE ROOT table

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