java study cases