Java labs