
public class HelloStaticVariables {
	public static void main(String...args) {
		System.out.println("Hello Static Variables!");
		Dog dog1 = new Dog();
		System.out.printf("dog1: Create id = %s, countDogs = %s\n", dog1.getID(), Dog.countDogs);
		Dog dog2 = new Dog();
		System.out.printf("dog2: Create id = %s, countDogs = %s\n", dog2.getID(), Dog.countDogs);
		Dog dog3 = new Dog();
		System.out.printf("dog3: Create id = %s, countDogs = %s\n", dog3.getID(), Dog.countDogs);
		System.out.printf("dog1: instance id = %s, static countDogs = %s\n", dog1.getID(), Dog.countDogs);
		System.out.printf("dog2: instance id = %s, static countDogs = %s\n", dog2.getID(), Dog.countDogs);
		System.out.printf("dog3: instance id = %s, static countDogs = %s\n", dog3.getID(), Dog.countDogs);
	}
}

class Dog {
	static int countDogs = 0;
	
	private int id;
	
	Dog() {
		id = ++countDogs;
	}
	
	int getID() {
		return this.id;
	}
}

@@ -1,9 +1,8 @@
-%0A
 public c
@@ -29,17 +29,20 @@
 ables %7B%0A
-%09
+    
 public s
@@ -70,16 +70,17 @@
 g...
+ 
 args) %7B%0A
 %09%09Sy
@@ -75,18 +75,24 @@
 args) %7B%0A
-%09%09
+        
 System.o
@@ -130,18 +130,24 @@
 les!%22);%0A
-%09%09
+        
 Dog dog1
@@ -152,34 +152,40 @@
 g1 = new Dog();%0A
-%09%09
+        
 System.out.print
@@ -254,26 +254,32 @@
 countDogs);%0A
-%09%09
+        
 Dog dog2 = n
@@ -280,34 +280,40 @@
 g2 = new Dog();%0A
-%09%09
+        
 System.out.print
@@ -386,18 +386,24 @@
 tDogs);%0A
-%09%09
+        
 Dog dog3
@@ -416,18 +416,24 @@
  Dog();%0A
-%09%09
+        
 System.o
@@ -506,34 +506,40 @@
 Dog.countDogs);%0A
-%09%09
+        
 System.out.print
@@ -613,34 +613,40 @@
 Dog.countDogs);%0A
-%09%09
+        
 System.out.print
@@ -728,18 +728,24 @@
 tDogs);%0A
-%09%09
+        
 System.o
@@ -835,17 +835,20 @@
 tDogs);%0A
-%09
+    
 %7D%0A%7D%0A%0Acla
@@ -856,17 +856,20 @@
 s Dog %7B%0A
-%09
+    
 static i
@@ -886,19 +886,21 @@
 gs = 0;%0A
-%09%0A%09
+%0A    
 private 
@@ -911,19 +911,21 @@
 id;%0A
-%09%0A%09
+%0A    
 Dog() %7B%0A
 %09%09id
@@ -920,18 +920,24 @@
 Dog() %7B%0A
-%09%09
+        
 id = ++c
@@ -950,14 +950,19 @@
 gs;%0A
-%09%7D%0A%09%0A%09
+    %7D%0A%0A    
 int 
@@ -975,10 +975,16 @@
 ) %7B%0A
-%09%09
+        
 retu
@@ -999,9 +999,12 @@
 id;%0A
-%09
+    
 %7D%0A%7D%0A

Update HelloStaticVariables.java