add a like java class