Print query result on terminal. (3.5 version)

Hello everyone, i am working on an older version of neo4j community ed. (3.5.4) and I am trying to experiment a bit with JVM. I've noticed that if i print this:

System.out.println(inner.execute( query, parameters, context, true )); in ExecutionEngine.java, I am getting something like that, in terminal, which is not what I was expected:

org.neo4j.cypher.internal.compatibility.v3_5.runtime.executionplan.StandardInternalExecutionResult@28e3b980.

where inner:

inner = new org.neo4j.cypher.internal.ExecutionEngine( queryService,
                                                               monitors,
                                                               tracer,
                                                               cacheTracer,
                                                               cypherConfiguration,
                                                               compilerFactory,
                                                               logProvider,
                                                               Clock.systemUTC() );

So my question is very simple I think, how can I print the query result on terminal?