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

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

@@ -1,9 +1,8 @@
-%0A
 public c
@@ -27,17 +27,20 @@
 thods %7B%0A
-%09
+    
 public s
@@ -68,16 +68,17 @@
 g...
+ 
 args) %7B%0A
 %09%09Sy
@@ -73,18 +73,24 @@
 args) %7B%0A
-%09%09
+        
 System.o
@@ -126,18 +126,24 @@
 ods!%22);%0A
-%09%09
+        
 Dog dog1
@@ -148,34 +148,40 @@
 g1 = new Dog();%0A
-%09%09
+        
 System.out.print
@@ -255,26 +255,32 @@
 untDogs());%0A
-%09%09
+        
 Dog dog2 = n
@@ -281,34 +281,40 @@
 g2 = new Dog();%0A
-%09%09
+        
 System.out.print
@@ -392,18 +392,24 @@
 ogs());%0A
-%09%09
+        
 Dog dog3
@@ -422,18 +422,24 @@
  Dog();%0A
-%09%09
+        
 System.o
@@ -517,34 +517,40 @@
 etCountDogs());%0A
-%09%09
+        
 System.out.print
@@ -629,34 +629,40 @@
 etCountDogs());%0A
-%09%09
+        
 System.out.print
@@ -749,18 +749,24 @@
 ogs());%0A
-%09%09
+        
 System.o
@@ -861,17 +861,20 @@
 ogs());%0A
-%09
+    
 %7D%0A%7D%0A%0Acla
@@ -882,17 +882,20 @@
 s Dog %7B%0A
-%09
+    
 private 
@@ -924,12 +924,13 @@
  0;%0A
-%09%09%0A%09
+%0A    
 priv
@@ -945,19 +945,21 @@
 id;%0A
-%09%0A%09
+%0A    
 Dog() %7B%0A
 %09%09id
@@ -954,18 +954,24 @@
 Dog() %7B%0A
-%09%09
+        
 id = ++c
@@ -980,22 +980,27 @@
 ntDogs;%0A
-%09%7D%0A%09%0A%09
+    %7D%0A%0A    
 static i
@@ -1015,26 +1015,32 @@
 untDogs() %7B%0A
-%09%09
+        
 return count
@@ -1049,14 +1049,19 @@
 gs;%0A
-%09%7D%0A%09%0A%09
+    %7D%0A%0A    
 int 
@@ -1074,10 +1074,16 @@
 ) %7B%0A
-%09%09
+        
 retu
@@ -1098,9 +1098,12 @@
 id;%0A
-%09
+    
 %7D%0A%7D%0A

Update HelloStaticMethods.java