package com.somedomain.here;

import java.io.File;
import java.util.List;

import static java.io.File.*;

/**
 * Class <b>JAVA</b> Doc
 *
 * @author Some Important Person
 */
@Awesome("yeah baby!")
public class Foo<T extends List> extends Bar<T> implements SomeInterface {

  private static final int COUNT = 0x243;
  private int myCount = 0;

  @Cool(reason="because")
  public static int staticMethod(String[] values, int n) {
    try {
      System.out.print("This is the value:\n" + values[0]);
    } catch (Exception e) {
      e.printStackTrace();
    }

    if (n > 0) {
      return COUNT; // single line comment
    } else {
      return -COUNT;
    }
  }

  public Foo(int count) {
    myCount = count;
  }

  /* This is a multiple...
      ...line comment. */

  public int getMyCount() throws MyFavoriteException {
    return myCount;
  }

  /**
   * Increment the count
   * @param by the amount to increment by
   */
  public void increment(int by) {
    myCount += by;
  }

  public String describe() {
    switch (myCount) {
      case 0: return "0";
      case 1: return "1";
      default: return "other";
    }
  }

  public MyFooInterface createFooBar() {
    final String test = null;

    return new MyFooInterface() {
      public boolean isValid() {
        return false;
      }
    };
  }

  public static interface MyFooInterface {
    public boolean isValid();
  }
}

@@ -1,588 +1,351 @@
-package com.somedomain.here;%0A%0Aimport java.io.File;%0Aimport java.util.List;%0A%0Aimport static java.io.File.*;%0A%0A/**%0A * Class %3Cb%3EJAVA%3C/b%3E Doc%0A *%0A * @author Some Important Person%0A */%0A@Awesome(%22yeah baby!%22)%0Apublic class Foo%3CT extends List%3E extends Bar%3CT%3E implements SomeInterface %7B%0A%0A  private static final int COUNT = 0x243;%0A  private int myCount = 0;%0A%0A  @Cool(reason=%22because%22)%0A  public static int staticMethod(String%5B%5D values, int n
+%0A// 1. Example ----------------------------%0A%0A/*%0A  Reverse Number using Java%0A  This Java Reverse Number Example shows how to reverse a given number.%0A*/%0A%0Apublic class ReverseNumber %7B%0A%0A  public static void main(String%5B%5D args
 ) %7B%0A
+%0A
     
-try %7B%0A      System.out.print(%22This is the value:%5Cn%22 + values%5B0%5D);%0A    %7D catch (Exception e) %7B%0A      e.printStackTrace();%0A    %7D%0A%0A    if (n
+//original number%0A    int number = 1234;%0A    int reversedNumber = 0;%0A    int temp = 0;%0A%0A    while(number
  %3E 0)
- 
 %7B%0A      
 retu
@@ -344,815 +344,470 @@
     
-return COUNT; // single line comment%0A    %7D else %7B%0A      return -COUNT;%0A    %7D%0A  %7D%0A%0A  public Foo(int count) %7B%0A    myCount = count;%0A  %7D%0A%0A  /* This is a multiple...%0A      ...line comment. */%0A%0A  public int getMyCount() throws MyFavoriteException %7B%0A    return myCount;%0A  %7D%0A%0A  /**%0A   * Increment the count%0A   * @param by the amount to increment by%0A   */%0A  public void increment(int by) %7B%0A    myCount += by;%0A  %7D%0A%0A  public String describe() %7B%0A    switch (myCount) %7B%0A      case 0: return %220%22;%0A      case 1: return %221%22;%0A      default: return %22other%22
+//use modulus operator to strip off the last digit%0A      temp = number%2510;%0A%0A      //create the reversed number%0A      reversedNumber = reversedNumber * 10 + temp;%0A      number = number/10;%0A    %7D%0A%0A    //output the reversed number%0A    System.out.println(%22Reversed Number is: %22 + reversedNumber)
 ;%0A  
-  
 %7D%0A
-  
 %7D%0A%0A
-  public MyFooInterface createFooBar() %7B%0A    final String test = null;%0A%0A    return new MyFooInterface() %7B%0A      public boolean isValid() %7B%0A        return false;%0A      %7D%0A    %7D;%0A  %7D%0A%0A  public static interface MyFooInterface %7B%0A    public boolean isValid();%0A  %7D%0A%7D
+%0A// 2. Tests ----------------------------%0A%0Apackage com.somedomain.here;%0A%0Aimport java.io.File;%0Aimport static java.io.File.*;%0A%0A// line comment%0A/* multi-line comment */
 %0A

Update Java