title: How can I get the value of the result in NEO4J Cypher Query in JAVA
body: <p>i'm newbie in neo4j</p>
  
  <p>actually, I write some query to find the distinct cluster number of graph in java</p>
  
  <p>like this</p>
  
  <pre><code>result = engine.execute("START n=node:nodes(\"id:"+queryId+"\") "+
  "MATCH (n)-[s]-(ns) "+  "WITH collect(distinct ns.cluster) as nc1 "+"RETURN nc1 ");
  </code></pre>
  
  <p>and then I printed the value of nc1 like this</p>
  
  <pre><code>for( Map&lt;String, Object&gt; row : result ) {
      for ( Entry&lt;String, Object&gt; column : row.entrySet() ){
  
      String key = column.getKey();
  
      Object value = column.getValue();
      if(key.equals("nc1")){
           System.out.println(value)
      }
  }
  </code></pre>
  
  <p>it was successful
  I can see the list 
  for example, [ 12, 34, 55, 60 ].</p>
  
  <p>but I cannot extract the number of the list</p>
  
  <p>how can I extract the exact value in object value.. I have no idea.</p>
  
  <p>please help me</p>
  
  <p>thank you</p>