• + 0 comments

    You can also follow this approach using String.format @Override void getNumberOfTeamMembers(){ int n=11; String result = String.format( "Each team has %d players in %s",n,getName() ); System.out.println(result); }