I'm using Prolog in java through JPL, I have some predicates with the format predicate:
format("Result ~p, ",[X]),
Using JPL in java the output of format goes to the console output in java, how can I retrieve this result into a string variable in java?
Thanks in advance