Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2008, 09:19 AM
Member
 
Join Date: Apr 2008
Posts: 30
raj reddy can only hope to improve
how to Parse int to a string variable
Hi


while(rs.next()) {

String Fname = Integer.parseInt(rs.getInt("tktkey"));


}


am getting this type of error


cannot find symbol

symbol:methodparseInt(Int)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-16-2008, 09:28 AM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
Hello Raj,

Try this

String Fname = String.valueOf(rs.getInt("tktkey"));

Or

String Fname = rs.getInt("tktkey")+"";



sanjeev
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 09:31 AM
Member
 
Join Date: Apr 2008
Posts: 30
raj reddy can only hope to improve
Hi sanjeev

This is working fine.

Thks a lot for repling to my queries.


regards
Raja
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 04:16 PM
Member
 
Join Date: Apr 2008
Posts: 30
raj reddy can only hope to improve
Quote:
Originally Posted by sanjeevtarar View Post
Hello Raj,

Try this

String Fname = String.valueOf(rs.getInt("tktkey"));

Or

String Fname = rs.getInt("tktkey")+"";



sanjeev
Hi sanjeev

can u pls help in this application




Hi

There were two arraylists


List al1 = (List) classabc.fetchTicketpanel();
System.out.println("THE LATEST VALUES OF THE TICKET KEY1 IS " + al1 );

List al2 = (List) classabc.fetchDrawresults();
System.out.println("THE LATEST VALUES OF THE TICKET KEY2 IS " + al2 );


Think it as a1,a2,a3,a4,a5 are the elements of al1 and b1,b2,b3,b4,b5,b6,b7,b8,b9,b10.........n number of elements

of al2.


how to compare the elements of these two arraylists.

please i need the code of comparing these two array lists.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-27-2008, 12:58 PM
Member
 
Join Date: Jun 2008
Posts: 4
satyadas is on a distinguished road
String Fname = String.valueOf(rs.getInt("tktkey"));
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Parse int to a string variable (pls hlp) raj reddy Threads and Synchronization 5 06-10-2008 07:32 AM
How to parse String effectively based on a dilimiter raghu408 Advanced Java 26 04-10-2008 11:55 PM
I can't seem to pass the value of a string variable into a string array mathias Java Applets 1 08-03-2007 11:52 AM
Parse XMLfile as String using SAX parser Jack XML 2 07-04-2007 10:17 AM
String Variable Eric Advanced Java 1 06-06-2007 05:30 AM


All times are GMT +3. The time now is 01:02 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org