Java Tutorial

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

public class DynamicString extends Applet
        String str;
        public void init()
            if (str==null)
            str=\"Hello\" + str;

        public void paint(Graphics g)

    Related Post:
  1. Program to show the use of Logical AND Operator (&) in If Statements

  2. An applet program to draw different shapes

  3. Program to show the use of some Math Methods

  4. An applet program to perform quick sort

  5. Program to show an example of using constructors in a class to initialize its data members

  6. Program that enabled applet calculator

  7. Program to read the price of an item in decimal form (like 75.95) and print the output in paise (like 7595 paise).

  8. Program to show the use of Labeled Break Statement

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

  10. Program to show the use of Comparison operator (==) for comparing Strings

  11. Program of bubble sort

  12. Program to calculate the frequency for different values of C starting from 0.01 to 0.1 in steps of 0.01

  13. Program to show the use of operator (<<) Shift Left filling with zero from the right

  14. Program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 7

  15. Program to show an example of using a Static Nested Class outside the Top-Level Class

  16. Program to generate SQUARE ROOT table

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

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

  19. Do the following for the Array Insert the element in the array,delete an element from the array,search for a particular element Create multiple thread

  20. Program to show an example of Polymorphism

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