package myPkg
// Import statements
import java.io.*
import java.util.*
// Local variables
String myVar
String myInt
With a list:
@author eric armstrong
@version 1.0
]]>
public MyClass(int foo, String bar)
if (foo == 1)
// Do one thing
myVar = bar
else if (foo == 2)
// Do second thing
myVar = Integer.parseint(foo)
myInt = foo
String method1()
/* Commented out code
if (myVar == "")
System.out.println("Unexpected error")
System.out.println(" --No value")
= 0
&& myInt < 5)
]]>
return "fly"
return myVar
String method2()
return myVar