2526272829303132333435
// Call luaState.call(2, 1); // 2 arguments, 1 return // Get and print result int result = luaState.toInteger(1); luaState.pop(1); // Pop result System.out.println("According to Lua, 1 + 1 = " + result); } finally { luaState.close(); } }