public class rsEntity{ private T rs; public T getRs() { return rs; } public void setRs(T rs) { this.rs = rs; } }
public static void main(String[] args) throws ScriptException { rsEntity rs=new rsEntity<>(); ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine se = manager.getEngineByName("js"); rs.setRs(se.eval((String) str())); List