Added main paradigm program written in Java.