how to create and Use Menu in java