My first encounter with Java