com.dkdy.util.shellController.ShellBean Maven / Gradle / Ivy
package com.dkdy.util.shellController;
import java.io.Serializable;
import java.util.ArrayList;
import com.alibaba.fastjson.JSON;
public class ShellBean implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private ArrayList list;
public ArrayList getList() {
return list;
}
public void setList(ArrayList list) {
this.list = list;
}
public static void main(String[] args) {
ShellBean shellBean = new ShellBean();
ArrayList list = new ArrayList();
list.add("cd /");
list.add("ls");
shellBean.setList(list);
String jsonString = JSON.toJSONString(shellBean);
System.out.println(jsonString);
}
}