I cannot pass a (String-)value to another class's setter method : <p>I know that i have not written a catch block yet.(reason?, but i think it's actually not the problem; the attributes of the "Game" class are perfectly changeable)</p>

<p>I always get an IOException when i try to call the setName method in Player (even if I set "name" in Player to public and change it directly).</p>

<pre><code>    public class game{



    protected static int amountPlayers;
    protected static Player[] playerList = new Player[amountPlayers];

public static void main (String[] args) throws IOException{
        //Scanner reader = new Scanner(System.in);
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        String input;

        System.out.println("new round? (1 for yes; enter for no):");
        int boo = Integer.parseInt(br.readLine());

        if (boo == 1) {
          Rounds.setNew(true);
        } // end of if

        if (Rounds.getNew() == true) {
          //SavingManagement.createFile();                            
          System.out.println("# of players:");
          int amount = Integer.parseInt(br.readLine());
          setAmountPlayers(amount);
        } // end of if

        for (int i = 0; i &lt; amountPlayers; i++) {
          System.out.println("Name player No. " + (i + 1) + ":");
          input = br.readLine();
          playerList[i].setName(input);      
        } // end of for
        }


    public class Player {


      protected static int score;     
      protected static String name = "";



      public static void setName(String input) {
        name = input;
      }
    }
</code></pre>
