Signo.X
Well-known member
hi all,
i have 4 classes :
Maze :
-has an arraylist of rooms object
Room:
-name
-size
-has an array list of of doors object
Door:
-direction
TestMaze:
- a class to execute the Maze.
in class TestMaze, i wana be able to return a sorted list of doors,
so questions:
1.do i implemet the Icomparable in the room class or the test maze class?
2.whats the code to sort the arrayList of doors objects? any examples?
Thanks in advanced!
i have 4 classes :
Maze :
-has an arraylist of rooms object
Room:
-name
-size
-has an array list of of doors object
Door:
-direction
TestMaze:
- a class to execute the Maze.
in class TestMaze, i wana be able to return a sorted list of doors,
so questions:
1.do i implemet the Icomparable in the room class or the test maze class?
2.whats the code to sort the arrayList of doors objects? any examples?
Thanks in advanced!