Example Programs for learning Java