tickets consist of four colours: green, blue , red, and white. each ticket has an associated price: green cost €5, blue cost€10, red cost€20, white cost€30. write an enumerated class Ticket that has a toString method that pretty prints it and a getCost method that returns its cost.
Jump to Post
There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.
DaniWeb Member Rules (which you agreed to when you signed up) …
All 2 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.