sometempstring = "*****************************************\n"; sometempstring.concat( "The dice has been rolled ten-thousand times, here are the statitics:\n") for( int i=0; i<6; i++) sometempstring.concat("The number of times " +(i+1)+ "was rolled are " + Results[i] +"\n"); sometempstring.concat( "\nDo you want to try again (Y/N)?:"); sometempstring.concat( "\n"); sometempstring.concat( "\n*****************************************"); paneresult = JOptionPane.showConfirmDialog(null, sometempstring, "Dice Roll Results", JOptionPane.YES_NO_OPTION);