Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adhouma/Comparable-VS-Comparator-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

Comparable-VS-Comparator-challenge

/**
 * Create a a Theatre class that contains name and ArrayList of seats as fields
 * For that you need to create a Seat class with seatNumber, price and reserved as fields
 * 
 * The Theatre class constructor need numberOfRows and seatsPerRow beside the name as parameters
 * Find a way to fill the Theatre with seats of 8 rows and 12 seats per row
 * The seats name must be A01, A02, A03, ..., H12 as 'A' is the row and '01' as the seat number
 * 
 * The front seats as A01, A02 ... are more expensive than the others seats
 * 
 * Create method that makes you reserve a seat
 * Create a method that makes you cancel seat reservation
 * 
 * Bonus:
 * Sort the Theatre seats by price
 * */

About

Java Comparable VS Comparator challenge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /