getInteget method

hi

am getting an error

cannot resolve symbol

symbol : method getInteger(java.lang.string)

interface java.sql.Resultset

strposx = rs.getInteger("POSX_FIELD")

a part of my code is given below

Integer strtposx

ResultSet rs=null;

String query;

query = "SELECT * FROM T_TABEL";

rs = stmt.executeQuery(query);

while(rs.next())

{

strtposx=rs.getInteger("POSX_FIELD");

}

[459 byte] By [brittle_bonda] at [2007-11-27 10:55:30]
# 1

It should be getInt()

SidGatea at 2007-7-29 11:56:57 > top of Java-index,Java Essentials,Java Programming...
# 2

I nominate this as the most moronic question this week. Easily solved by just one short glance at the docs.

CeciNEstPasUnProgrammeura at 2007-7-29 11:56:57 > top of Java-index,Java Essentials,Java Programming...
# 3

Isn't it "getInt" not "getInteger" the method name?

ita6cgra at 2007-7-29 11:56:57 > top of Java-index,Java Essentials,Java Programming...
# 4

> I nominate this as the most moronic question this

> week. Easily solved by just one short glance at the

> docs.

hmmm.. I am now feeling like a fool for replying such questions...

SidGatea at 2007-7-29 11:56:57 > top of Java-index,Java Essentials,Java Programming...
# 5

> hmmm.. I am now feeling like a fool for replying

> such questions...

The fun is to reply in a not-replying way. My post is fully sufficient - either one can take its content and actually go and look at the API docs and see what's wrong, or one can just see the insult sulk a little. Or best, see both and learn not to make the same mistake again next time. :)

CeciNEstPasUnProgrammeura at 2007-7-29 11:56:57 > top of Java-index,Java Essentials,Java Programming...
# 6

> > I nominate this as the most moronic question this

> > week. Easily solved by just one short glance at

> the

> > docs.

>

> hmmm.. I am now feeling like a fool for replying

> such questions...

As do I lol. Although I didn't look at the API I'm sure a similar Q has been asked before?

ita6cgra at 2007-7-29 11:56:57 > top of Java-index,Java Essentials,Java Programming...