/**
 * @file Counter.java
 * @author Valery Samovich
 * @version 1
 * @date 2015/01/05
 */

package com.valerysamovich.java.oop.staticex.counter;

public class Counter {

    NonStaticCounter c1 = new NonStaticCounter();
    NonStaticCounter c2 = new NonStaticCounter();
    NonStaticCounter c3 = new NonStaticCounter();
}

@@ -164,16 +164,156 @@
 nter %7B%0A%0A
+    public static void main(String%5B%5D args) %7B%0A%0A        System.out.println(%22Non Static Objects:%22);%0A%0A        // Non Static Object Counters%0A    
     NonS
@@ -350,32 +350,36 @@
 cCounter();%0A    
+   
+ 
 NonStaticCounter
@@ -408,24 +408,28 @@
 nter();%0A    
+   
+ 
 NonStaticCou
@@ -462,10 +462,278 @@
 nter();%0A
+%0A        System.out.println(%22 %22);%0A%0A        System.out.println(%22Static Objects:%22);%0A        // Static Object Counters%0A        StaticCounter c4 = new StaticCounter();%0A        StaticCounter c5 = new StaticCounter();%0A        StaticCounter c6 = new StaticCounter();%0A%0A    %7D%0A%0A
 %7D%0A

Add counter Static example plus non Static