Welcome to JavaRanch
You haven't provided full details, but if we make some reasonable assumptions about the rest of the class, there is only one error: the capital P in Price. Are you sure ticketCost is the best name for the parameter?
Please use
the code button and use the correct indentation.
[ September 14, 2008: Message edited by: Campbell Ritchie ]