I have TestingID variable and a sql string as follows in my java code. the sql string will later be used for prepareStatement.
int TestingID;
String sqlInsert = "INSERT INTO TESTING VALUES(TESTING_SEQ.NEXTVAL, ?, ?)";
...
MethodA(TestingID); //passing TestingID to MethodA
I need to get the next sequence value of the newly inserted record into the TestingID so that I can use it in another method as shown above.