Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #27.9K
Ranked #4K
~2K People Reached
Favorite Tags

6 Posted Topics

Member Avatar for bohm13rit

[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]

Member Avatar for teachMyself
0
970
Member Avatar for sunny124

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 …

Member Avatar for sunny124
0
125
Member Avatar for hill0ster
Member Avatar for nicoletonyf

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 …

Member Avatar for jwstickley
0
276
Member Avatar for Tomas Lopez

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 = …

Member Avatar for jwstickley
0
165
Member Avatar for arthi

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 …

Member Avatar for jwstickley
0
119

The End.