Add a java class.