Im having trouble apprending a file which has to have a hash map plus have data before it. it only does one at a time
if(customerMap.size()> 0)
{
PrintWriter nw = new PrintWriter(new FileWriter(newFile1,true));
nw.print("hi"); //this is the extra information
for(Customer customers: customerMap.values()) // hash map
{
customers.writeData(nw);
}
}