Menubuilder for console in Java