I'm adding multiple players to a team and each individual player needs a try catch, but the catch is always the same
try{
team.addPlayer( new Player( 1, "PLYR1" ) );
} catch ( Exception e ){
System.out.println( e.toString() );
}
try {
team.addPlayer( new Player( 2, "PLYR2" ) );
} catch ( Exception e ){
System.out.println( e.toString() );
}
Is there any way to simplify this?