3rd sem java 10 program