The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Re: A small doubt

Posted by Ahmed Ashour on December 18, 2000 at 8:15 AM

1) As Richard said:

int i = 5032;
String s = "" + i;

but that initializes a StringBuffer.

2) int i = 1292;
String str = String.valueOf( i );

3) int i = 2098;
Integer integer = new Integer( i );




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us