Java application done in two ways using 1) Swing 2) Console IO