My Java Homeworks [Partial]