Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is my syntax is correct?

843836Feb 6 2004 — edited Feb 6 2004
hi all,
here is my syntax.

if (users_table)
{
a=1;
}
if("timea".equals(rs.getString("timea")))
{
b=Math.floor((rs.getInt("DURATION"))-(rs.getInt("USED_DURATION"))/60);
}
else if("timeb".equals(rs.getString("timeb")))
{
if(myvar==1)
{
c=rs.getString("timec");
}
}

i am not getting any error but i think i am wrong somewhere in framing the syntax.bcs i am getting output stange.

Any help will be greatly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2004
Added on Feb 6 2004
4 comments
135 views