Java work