simple app to illustrate the conciseness of java vs. scala