Java Tutorial

/* <applet code=\"concat2Str\" height=150 width=350>
   </applet> */

import java.awt.*;
import java.applet.*;

public class concat2Str extends Applet
       TextField Ts1,Ts2;

       public void init(){
            Ts1 = new TextField(10);
            Ts2 = new TextField(10);

        public void paint(Graphics g){
            String str1,str2;

            g.drawString(\"Enter Two String to Concat Them \",10,50);

            g.drawString(str1+\" \"+str2,10,70);
            showStatus(\"Concatination of 2 String\");

     public boolean action(Event e, Object o){
           return true;


    Related Post:
  1. Write a class whose objects holds a current value and have a method to add that value, printing the new value

  2. Program to show an example of creating a String object from a StringBuffer Object

  3. An application that combines several classes and interface

  4. Even number ,Prime no. ,Factorial of a number

  5. Program to evaluate following investment equation V=P(1+R)^N

  6. Program that enabled applet that takes name of the user. Server returns back the number in uppercase clubbed with “HELLO” and display it on applet

  7. Program to show the comparing of Strings for equality

  8. Program, which creates a three thread. One thread display the numbers from 1 to 5, second thread display the square root of that number etc

  9. Program to print some text on the same line using multiple print statements

  10. Program to show an example of using a Non-Static Nested Class

  11. Corba program of game

  12. Develop a game application in CORBA for which the player will guess a number between 1 to 100, which will be compared to the random number generated b

  13. Program to show the use of Bitwise Operator (^) XOR (Exclusive OR)

  14. Program to show an example of Copying i.e. Clonning Objects

  15. Program to show an example of extraction of characters from a StringBuffer objects

  16. Program to show the use of some Math Methods

  17. Program to show the use of Switch Statement

  18. Program to show an example of overloading constructors in a class to initialize its data members

  19. An applet program to perform quick sort

  20. Program of concatenating and Buffering files

Didn't find what you were looking for? Find more on An applet program that concatenates two string entered in TextField