标签: java prolog ffi jpl
答案 0 :(得分:1)
Hashtable[] solutions = q4.allSolutions(); for (int i = 0 ; i < solutions.length; ++i) { System.out.println("X = " + solutions[i].get(X)); }
另见http://www.swi-prolog.org/packages/jpl/java_api/getting_started.html