Dunno what exactly your problem is (you failed to specify ), but this jumps out at me:
System.out.println("End of program ");
No semicolons after if statements, and you need to properly structure your syllogisms if you want to code to execute properly (what you have there is an infinite loop after you remove the syntax error).
I've noticed that you have posted multiple threads along the same subject lines, for help with a program. While our members are more than willing to help you, it would be easier for them if the material were kept it all in one thread, instead of posting a new thread each time...you can simply use the Reply functionality of the first thread. This will allow our members to see the progression of the program as it goes along.
Please do not hesitate to contact me with any questions or concerns that you may have. Thanks, and have a great day.
For continuities sake, here are the original threads...