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
~441 People Reached
About Me
Name: Tin Nilar OoNick: PyaythuAge: 25Eduction: Computer ScienceLocation: Yangon, MyanmarPrivate Role: Java Programmer
- Interests
- Hobbies: Reading, Watching TV
- PC Specs
- Programming Language: Java
Favorite Forums
3 Posted Topics
Re: Assign the result of a query to a string using 'next()' with 'while' looping while (rs.next()) { result = rs.getString(1); } | |
Re: yes. You have to use "e.printStackTrace();" in your catch block. And check the table column names of the "content" table. e.g. labid, r1, r2, r3 String labid = rs.getString("labid"); String r1 = rs.getString("r1"); String r2 = rs.getString("r2"); String r3 = rs.getString("r3"); You have to use 'column names of content table' … | |
Re: I think you need "Type Cast". userInput=(String)JOptionPane.showInputDialog(null, i, "Game", JOptionPane.INFORMATION_MESSAGE, sword, null, null); |
The End.