Java Blog

 
 
 
 public class JAVA_071
 {

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

 
 
Didn't find what you were looking for? Find more on Program to show an example of using a Static Nested Class