Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Blog 

assignment 3

Language: Layout:
+ ] Show input
Compilation time: 1.14 sec, absolute running time: 0.49 sec, cpu time: 0.53 sec, memory peak: 18 Mb, absolute service time: 1,75 sec 
edit mode |  history  | discussion
Error(s), warning(s):
source_file.java:224: warning: [unchecked] unchecked cast
        playerz = (ArrayList<UltimatePlayer>) players.clone();
                                                           ^
  required: ArrayList<UltimatePlayer>
  found:    Object
source_file.java:225: warning: [unchecked] unchecked cast
       coachez = (ArrayList<Coach>) coaches.clone();
                                                 ^
  required: ArrayList<Coach>
  found:    Object
2 warnings


Printing person:
Doe, John

Printing player:
Smith, Mary
   Jersey #: 1
   Position: cutter

Printing captain:
Tully, Henry
   Jersey #: 2
   Position: handler
   Captain: offense

Printing coach:
Lee, Sara
   Role: Head coach

Printing team:
COACHES

Mathour, Maryam
   Role: Head Coach
Van Loben Sels, Soren
   Role: Assistant Coach
PLAYERS

Trong, Sammy
   Jersey #: 3
   Position: handler
Patel, Jayant
   Jersey #: 4
   Position: handler
Ozaeta, Myra
   Jersey #: 5
   Position: cutter
Holbrook, Lisa
   Jersey #: 6
   Position: cutter
Kvale, Lisbeth
   Jersey #: 7
   Position: cutter
Henry, Malik
   Jersey #: 8
   Position: handler
   Captain: offense
Pak, Joseph
   Jersey #: 9
   Position: cutter
   Captain: defense

Printing cutters:

Ozaeta, Myra
   Jersey #: 5
   Position: cutter
Holbrook, Lisa
   Jersey #: 6
   Position: cutter
Kvale, Lisbeth
   Jersey #: 7
   Position: cutter
Pak, Joseph
   Jersey #: 9
   Position: cutter
   Captain: defense

Printing handlers:

Trong, Sammy
   Jersey #: 3
   Position: handler
Patel, Jayant
   Jersey #: 4
   Position: handler
Henry, Malik
   Jersey #: 8
   Position: handler
   Captain: offense