
public class HelloAccessContol {
	public static void main(String...args) {
		System.out.println("Hello Access Control!");
		
		MyClass myClass = new MyClass();
		
		myClass.defaultVar = 1;
		myClass.publicVar = 2;
//		myClass.privateVar = 3; Causes compiler error
		myClass.setPrivateVar(3);
		
		System.out.printf("myClass.defaultVar = %s\n", myClass.defaultVar);
		System.out.printf("myClass.publicVar  = %s\n", myClass.publicVar);
		System.out.printf("myClass.privateVar = %s\n", myClass.getPrivateVar());
	}
}

class MyClass {
	int defaultVar;
	public int publicVar;
	private int privateVar;
	
	void setPrivateVar(int value) {
		privateVar = value;
	}
	
	int getPrivateVar() {
		return privateVar;
	}
}

@@ -1,8 +1,36 @@
+import java.util.Formatter;%0A
 %0Apublic 
@@ -44,24 +44,25 @@
 ello
-AccessContol %7B%0A%09
+Formatting %7B%0A    
 publ
@@ -94,16 +94,17 @@
 g...
+ 
 args) %7B%0A
 %09%09Sy
@@ -99,18 +99,24 @@
 args) %7B%0A
-%09%09
+        
 System.o
@@ -137,608 +137,739 @@
 llo 
-Access Control!%22);%0A%09%09%0A%09%09MyClass myClass = new MyClass();%0A%09%09%0A%09%09myClass.defaultVar = 1;%0A%09%09myClass.publicVar = 2;%0A//%09%09myClass.privateVar = 3; Causes compiler error%0A%09%09myClass.setPrivateVar(3);%0A%09%09%0A%09%09System.out.printf(%22myClass.defaultVar
+Formatting!%22);%0A        int x = 1;%0A        String s1 = String.format(%22x = %25d%22, x);%0A        System.out.println(s1);%0A        System.out.format(%22x
  = %25
-s
+d
 %5Cn%22, 
-myClass.defaultVar);%0A%09%09System.out.printf(%22myClass.publicVar  = %25s%5Cn%22, myClass.publicVar);%0A%09%09System.out.printf(%22myClass.privateVar = %25s%5Cn%22, myClass.getPrivateVar());%0A%09%7D%0A%7D%0A%0Aclass MyClass %7B%0A%09int defaultVar;%0A%09public int publicVar;%0A%09private int privateVar;%0A%09%0A%09void setPrivateVar(int value) %7B%0A%09%09privateVar = value;%0A%09%7D%0A%09%0A%09int getPrivateVar() %7B%0A%09%09return privateVar;%0A%09
+x);%0A        StringBuffer sb = new StringBuffer();%0A        Formatter fmtr = new Formatter(sb);%0A        fmtr.format(%22x = %25d%22, x);%0A        System.out.println(sb.toString());%0A%0A        // TODO: FORMAT SPECIFIERS: %25s, %25d, etc%0A%0A        // TODO: WHICH SPECIFIERS? BIGDECIMAL?%0A%0A        // TODO: SPECIFYING WIDTH%0A%0A        // TODO: PADDING, TRUNCATING%0A%0A        // TODO: SIGNS (AND PAREN)%0A%0A        // TODO: DATA AND TIME FORMATTING%0A%0A        // TODO: ARGUMENT INDEX: 1$%0A%0A        // TODO: CLASS FORMATTER: CONSTRUCTORS, METHODS%0A%0A        // NOTE: PUT INTERNATIONALIZATION IN SEPARATE KATA%0A%0A    
 %7D%0A%7D%0A

Update HelloAccessContol.java