Java Tutorial

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

public class DynamicString extends Applet
{
        String str;
        public void init()
        {
            str=getParameter(\"string\");
            if (str==null)
            {
                str=\"Java\";
            }
            str=\"Hello\" + str;
        }

        public void paint(Graphics g)
            {
                  g.drawString(str,10,100);
            }
};

    Related Post:
  1. Program to show an example of extracting subStrings from a String

  2. Program to show some properties of StringBuffer object

  3. Corba program of UDP client server application which sends the news to the client. Server takes the news from the NewsDataFile located at the server

  4. Program to delete mth element from an input string

  5. 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

  6. Program sets up a String variable containing a paragraph of text of your choice. Extract the words from the text and sort them into alphabetical order

  7. Program to show an example of using a recursive method in a class

  8. Program which simulate the dictionary in java

  9. An applet program to perform selection sort

  10. An applet program that concatenates two string entered in TextField

  11. Program to show the use of Increment and Decrement Operators

  12. Program to declare, initialize and print a StringBuffer object

  13. Program to show the use of Break Statement

  14. Program of inventory management and demonstrating interactive input and output

  15. Write a class whose objects holds a current value and have a method to add that value, printing the new value

  16. Program to find a factorial of a given number

  17. Program of UDP datagram

  18. Write a class whose objects holds a current value and have a method to add that value, printing the new value

  19. Program to declare, initialize and print a String object

  20. Biological Sequence Allignment Using Dynamic Programing

 
 
Didn't find what you were looking for? Find more on An applet program that creates string dynamically and displays it