Programming in Java examples