src/main/java/cursor/rybak/model/team/Team.java
/**
     * return String of all members name in team
     *
     * @return members name in team
     */
return String of all members name in team
@return members name in team
return String of all members name in team @return members name in team
private String printTeamMembers() {
        String[] heroesName = new String[heroes.length];
        for (int i = 0; i < heroes.length; i++) {
            heroesName[i] = String.format("%s (%.0f)", heroes[i].getHeroName(), heroes[i].getHealth());
        }
        return String.join(", ", heroesName);
    }
private String printTeamMembers ( ) { String [ ] heroesName = new String [ heroes . length ] ; for ( int i = 0 ; i < heroes . length ; i ++ ) { heroesName [ i ] = String . format ( "%s (%.0f)" , heroes [ i ] . getHeroName ( ) , heroes [ i ] . getHealth ( ) ) ; } return String . join ( ", " , heroesName ) ; }
return String of all members name in team
 @return members name in team
return String of all members name in team @return members name in team