First experience in Java