A Java demo to show how to output result in excel file.