Practice CS questions in Java