String prefToWrite = new String(""); for (MACAddress current : this.knownXboxes) { System.out.println(current.toString()); prefToWrite.concat(current.toString()); prefToWrite.concat(","); } // Why is prefToWrite empty... even though line 3 reveals that current.toString() is returning 'stuff'