import java.util.Formatter;

public class HelloFormatting {
    public static void main(String... args) {
        System.out.println("Hello Formatting!");
        int x = 1;
        String s1 = String.format("x = %d", x);
        System.out.println(s1);
        System.out.format("x = %d\n", x);
        StringBuffer sb = new StringBuffer();
        Formatter fmtr = new Formatter(sb);
        fmtr.format("x = %d", x);
        System.out.println(sb.toString());

        // TODO: FORMAT SPECIFIERS: %s, %d, etc

        // TODO: WHICH SPECIFIERS? BIGDECIMAL?

        // TODO: SPECIFYING WIDTH

        // TODO: PADDING, TRUNCATING

        // TODO: SIGNS (AND PAREN)

        // TODO: DATA AND TIME FORMATTING

        // TODO: ARGUMENT INDEX: 1$

        // TODO: CLASS FORMATTER: CONSTRUCTORS, METHODS

        // NOTE: PUT INTERNATIONALIZATION IN SEPARATE KATA

    }
}

@@ -1,32 +1,4 @@
-import java.util.Formatter;%0A
 %0Apub
@@ -12,26 +12,28 @@
 ss Hello
-Formatting
+AccessContol
  %7B%0A    p
@@ -111,31 +111,36 @@
 llo 
-Formatting
+Access Control
 !%22);%0A
+%0A
         
 int 
@@ -139,195 +139,205 @@
     
-int x = 1;%0A        String s1 = String.format(%22x = %25d%22, x);%0A        System.out.println(s1);%0A        System.out.format(%22x = %25d%5Cn%22, x);%0A        StringBuffer sb = new StringBuffe
+MyClass myClass = new MyClass();%0A%0A        myClass.defaultVar = 1;%0A        myClass.publicVar = 2;%0A        // myClass.privateVar = 3; Causes compiler error%0A        myClass.setPrivateVa
 r(
+3
 );%0A
+%0A
         
 Form
@@ -336,524 +336,455 @@
     
-Formatter fmtr = new Formatter(sb);%0A        fmtr.format(%22x = %25d%22, x);%0A        System.out.println(sb.toString
+System.out.printf(%22myClass.defaultVar = %25s%5Cn%22, myClass.defaultVar);%0A        System.out.printf(%22myClass.publicVar  = %25s%5Cn%22, myClass.publicVar);%0A        System.out.printf(%22myClass.privateVar = %25s%5Cn%22, myClass.getPrivateVar
 ());%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
+%7D%0A%7D%0A%0Aclass MyClass %7B%0A    int defaultVar;%0A    public int publicVar;%0A    private int privateVar;%0A%0A    void setPrivateVar(int value) %7B%0A        privateVar = value;%0A    %7D%0A%0A    int getPrivateVar() %7B%0A        return privateVar;
 %0A   

Update HelloAccessContol.java