Get the values of ResultsTable

I need to get all the values of a column from the ResultsTable.
Currently, i can get only one value by using this line

double x = rt.getValueAsDouble(rt.getColumnIndex(“x”),i);

Can somebody please tell me how to get all the values for the ResultTable.
How should i increment my counter? Please let me know.
Thanks a lot.

Hi @nickii,
have you already tried with : rt.getColumnAsDoubles(column_index)

Have a nice day,