Simple app in Java