first version of java class
apply java to 212