Then do a write("\n"); after each row. Better way would be to find theSystem.property for newlineinstead of using hardcoded \n. But I cannot remember right now.