public class Strings {
  private static void expect(boolean v) {
    if (! v) throw new RuntimeException();
  }

  public static void main(String[] args) {
    expect(new String(new byte[] { 99, 111, 109, 46, 101, 99, 111, 118, 97,
                                   116, 101, 46, 110, 97, 116, 46, 98, 117,
                                   115, 46, 83, 121, 109, 98, 111, 108 })
      .equals("com.ecovate.nat.bus.Symbol"));
    
    final String months = "Jan\u00aeFeb\u00aeMar\u00ae";

    System.out.println(months.split("\u00ae")[0]);
    System.out.println(months.length());
    System.out.println(months);
    for (int i = 0; i < months.length(); ++i) {
      System.out.print(Integer.toHexString(months.charAt(i)) + " ");
    }
    System.out.println();

    expect(months.split("\u00ae").length == 3);

    StringBuilder sb = new StringBuilder();
    sb.append('$');
    sb.append('2');
    expect(sb.substring(1).equals("2"));
  }
}

@@ -434,336 +434,140 @@
     
-final String months = %22Jan%5Cu00aeFeb%5Cu00aeMar%5Cu00ae%22;%0A%0A    System.out.println(months.split(%22%5Cu00ae%22)%5B0%5D);%0A    System.out.println(months.length());%0A    System.out.println(months);%0A    for (int i = 0; i %3C months.length(); ++i) %7B%0A      System.out.print(Integer.toHex
+// We don't yet have a regex implementation, so this test will fail:%0A//     final 
 String
-(
+ 
 months
-.charAt(i)) + %22 %22);%0A    %7D%0A    System.out.println();%0A%0A
+ = %22Jan%5Cu00aeFeb%5Cu00aeMar%5Cu00ae%22;%0A// 
     

comment out use of currently-unsupported regex functionality in Strings test