rs.getInt() returnValue problem

hi.. here is my code:

while (rs.next()){

int i= rs.getInt("Numbers");

System.Out.Println(i);

}

my database is:

Numbers

1

2

3

4

5

but output is;

3

4

5

1

2

i wonder why?

thanks..

[450 byte] By [aDiGea] at [2007-11-27 2:28:03]
# 1
Missed an ORDER BY in the query?Or if you aren't able to, then store the results in a List<DTO> and invoke Collections#sort() on the List.
BalusCa at 2007-7-12 2:39:33 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

no it is not ordered and i dont wanna order it, it is just an example.

for example i changed values;

Numbers

4

3

7

1

2

8

but output is;

7

1

2

8

4

3

firs 2 values come last..

it is strange..i dont know that i am missing somethings..

aDiGea at 2007-7-12 2:39:33 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Without an ORDER BY, the DB decides how it outputs the query results, usually based on certain performance patterns.
BalusCa at 2007-7-12 2:39:34 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...