Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
- /*
- * Convert Long to String example. Program to convert Java
- * Long object to String object.
- */
- public class LongToString {
- public static void main(String args[]){
- //new Long object
- Long lObj = new Long("1233243449");
- //to convert Long to String use toString method of Long wrapper class
- String strLValue = lObj.toString();
- System.out.println("Long converted to String: " + strLValue);
- }
- }

is there any way I can
Post new comment