public class JsonToExcel {
// 服务器文件路径
public static String saveUrl ="D:\hnqp\GMManager\excal\"
public static void excelToLoad_player(JSONArray data,String name) {
String textName =name+".csv"
FileWriter fw = null
try {
fw = new FileWriter(saveUrl+textName)
fw.write("玩家id")
fw.write(",")
fw.write("openId")
fw.write(",")
fw.write("昵称")
fw.write(",")
fw.write("平台")
fw.write(",")
fw.write("注册时间")
fw.write(",")
fw.write("是否禁用")
fw.write(",")
fw.write("是否机器人")
fw.write("
")
fw.flush()
Iterator