Software Engineering 2 Java application