aspose file tools*
The moose likes Beginning Java and the fly likes conversion from int to String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "conversion from int to String" Watch "conversion from int to String" New topic
Author

conversion from int to String

Anup Jadhav
Greenhorn

Joined: Aug 25, 2005
Posts: 12
hey folks,

I am new to JSP and Java, can you please show me a sample piece of code for converting an int to String.

Thanks in advance !!!
AJ
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

Moved to java in General (beginner).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

Check out the String.valueOf() methods.
Kenneth Albertson
Ranch Hand

Joined: Sep 18, 2005
Posts: 59
This works quite well too. You do it all the time in println(). It is a characteristic of string concatenation:
Naveen Vooka
Greenhorn

Joined: Oct 13, 2004
Posts: 25
Originally posted by Anup Jadhav:
converting an int to String.


http://forum.java.sun.com/thread.jspa?threadID=543284&messageID=2636988

--------------
Naveen Vooka
www.devsquare.com
DevSquare - Online Application Development
[ October 03, 2005: Message edited by: Naveen Vooka ]
Anup Jadhav
Greenhorn

Joined: Aug 25, 2005
Posts: 12
Thanks a lot guys,

Guys, one more thing, I am basically writing a jsp file with HTML-B tags adn scriptlets.
Now inside the scriptlet, I have a variable check_box_id in JSP and I want to pass this id to a java file.
How do I do that?

-AJ
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14143
    
  18

You'd better open a new topic in the appropriate forum if you're going to ask a new question that's totally unrelated to your previous question.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: conversion from int to String