- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
6 Posted Topics
[code] public String reverse(String normal) { //reverse the letters in string int length = normal.length(); //length of string StringBuffer result = new StringBuffer(length); int i; for(i = length - 1; i>=0; i--) { result.append(normal.charAt(i)); } return result.toString(); } [/code]
Likely your DB session is set to autoCommit after each SQL command issued through JDBC. Any open resultSets on a given DB connection will reset after a commit (auto or manual). If you turn off auto-commit then you will be able to use your cursor after an update. But, now …
Not sure if you are doing templates or not, but templates provide the most reusable solution... Here is a simple solution using templates and will work on any collection having any type of data. This could be adapted to be a member method of the collection class. If you move …
The infinite loop is caused by the fact that you never decrement your num_rooms variable. add <TAB>num_rooms--; to the end of your while loop. Your number of tiles issue is located in the following commands: // I don't know what this is for, you could probably remove this tiles = …
If you collect the result set from your first query into a coma separated string as follows: 16,27,95,97,90,89,65,45,44,78,87,93 then, you can then embed this string in the second query as follows: select * from your_second_table where id in ( 16,27,95,97,90,89,65,45,44,78,87,93) The only problem with this is that the second query …
The End.
jwstickley