Hi
while(rs.next()) {
String Fname = Integer.parseInt(rs.getInt("tktkey"));
}
am getting this type of error
cannot find symbol
symbol:methodparseInt(Int)
Printable View
Hi
while(rs.next()) {
String Fname = Integer.parseInt(rs.getInt("tktkey"));
}
am getting this type of error
cannot find symbol
symbol:methodparseInt(Int)
Try this...
Code:String Fname = Integer.toString(rs.getInt("tktkey"));
Your method parseInt takes a String and converts it into an integer. This is the opposite of what you need which is what Don showed.
you can straight away assign your integer to string just add +"" with the integer
yeah just to what gogoc said just do "" + you integer.
String Fname = "" + rs.getInt("tktkey");