Java work

I think I figured it out.