Skip to Main Content

Java Programming

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!

How would I rewrite SELECT NEXT_DAY(SYSDATE, 'Sunday') NEXT_SUNDAY FROM DUAL in Java?

JDeveloper Newbie (11.1.1.6.0)Dec 23 2013 — edited Dec 24 2013

Hi everyone,

Being new to Java, I am finding that things I took for granted in SQL and PL/SQL are far from "second nature" here!

Would someone tell me how would I rewrite the following in Java (for ADF)? My Google and OTN Community searches are coming up empty-handed. Any function in which I pass a date and get a date back for the next Sunday is fine, i.e., I don't need the SQL.

select

next_day(sysdate, 'Sunday') next_sunday

from dual;

Thanks in advance!

James

This post has been answered by 2786154 on Dec 23 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2014
Added on Dec 23 2013
4 comments
2,381 views