java exercises

My Java exercises, done in class.