Java Blog

 public class JAVA_073

    public static void main(String[] args)
       System.out.println(new MagicHat(\"Gray Topper\"));
       System.out.println(new MagicHat(\"Black Topper\"));
       System.out.println(new MagicHat(\"Baseball Topper\"));

       MagicHat oldHat=new MagicHat(\"Old hat\");
       MagicHat.Rabbit Rabbit( );

       System.out.println(\"\\nNew rabbit is : \" + rabbit);

    Related Post:
  1. An applet program to draw circle in center of the canvas

  2. An applet program to perform quick sort

  3. Program to show an example of using Abstract Class and Abstract Method

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

  5. Add,delete,Update in LISTS

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

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

  8. Program to show the use of Switch Statement for the same statement for several different case labels

  9. Program to show an example of Calling a Base Class Method from a Derived Class

  10. Program to show an example of using initialization block to initialize the data members of a class

  11. An applet program to display barchart of given data

  12. Program to display bank account

  13. Program to declare and initialize Integer variables and print them on the Standard Output Device

  14. Corba program of reverse string

  15. Program to show the use of Conditional AND Operator (&&) in If Statements

  16. RMI servlet program to display message

  17. An applet program that displays random dot

  18. Program to convert the given temperature in faherenhiet to celsius using the following conversion formula C= F- 32/1.8

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

  20. Program to show the use of Switch Statement