SQL Query result to Java Array : <p>I want to read the query result in to array and want to check the array in if condition.
Query in returns </p>

<pre><code>SELECT COLUMN
 FROM Table;
OUT PUT:
A
B
C
D
F 
</code></pre>

<p>Want to store the above result in array in java and use in the if condition.</p>
