/*
	(c) 1998 Burton Rosenberg. All rights reserved.
*/

class Item
{
	int price ;
	String description ;
	
	String getDescription()
	{
		return description ;
	}
   
	void customizeInfo()
	{  }
   
   	void printInfo()
	{  }
	
	int getPrice()
	{
		return price ;
	}

	static int menuChooser( String prompt, String [] options )
	{
		System.out.println(prompt) ;
		for (int i=0; i<options.length; i++)
		{
			System.out.println("  "+(i+1)
				+": " + options[i] ) ;
		}
		System.out.println("\n  0: exit menu") ;
		int choice = corejava.Console.readInt("?") ;
		while ( choice<0 || choice>options.length )
		{
			choice = corejava.Console.readInt("0-"
				+ options.length + "?") ;
		}
		return choice-1 ;
	}
}

