抱歉没有仔细看文档
public static int testexec(){
Molecule<Object> molecule = new Molecule<Object>() {
public void run() {
setObj(123);
}
};
Trans.exec(molecule);
return Convert.toInt(molecule.getObj());
}
public static void main(String[] args) {
System.out.println(testexec());
}