Convert from long to String : Long « Data Type « Java Tutorial

Home
Java Tutorial
1.Language
2.Data Type
3.Operators
4.Statement Control
5.Class Definition
6.Development
7.Reflection
8.Regular Expressions
9.Collections
10.Thread
11.File
12.Generics
13.I18N
14.Swing
15.Swing Event
16.2D Graphics
17.SWT
18.SWT 2D Graphics
19.Network
20.Database
21.Hibernate
22.JPA
23.JSP
24.JSTL
25.Servlet
26.Web Services SOA
27.EJB3
28.Spring
29.PDF
30.Email
31.J2ME
32.J2EE Application
33.XML
34.Design Pattern
35.Log
36.Security
37.Apache Common
38.Ant
39.JUnit
Java Tutorial » Data Type » Long 
2.8.15.Convert from long to StringPrevious/Next
public class Main {
  public static void main(String[] argsthrows Exception {

    String str = Long.toString(2L);
  }
}
2.8.Long
2.8.1.Long Integer Literal
2.8.2.Create a Long object
2.8.3.Add two long integers, checking for overflow.
2.8.4.Multiply two long integers, checking for overflow.
2.8.5.Subtract two long integers, checking for overflow.
2.8.6.Convert Long to numeric primitive data types example
2.8.7.Convert long primitive to Long object Example
2.8.8.Compute distance light travels using long variables
2.8.9.Java long Example: long is 64 bit signed type
2.8.10.Min and Max values of datatype long
2.8.11.Gets the maximum of three long values.
2.8.12.Gets the minimum of three long values.
2.8.13.Convert Java String to Long example
2.8.14.Use toString method of Long class to convert Long into String.
2.8.15.Convert from long to String
2.8.16.Convert from String to long
2.8.17.A utility class for converting a long into a human readable string.
2.8.18.Java Sort long Array Example
2.8.19.Compare Two Java long Arrays Example
2.8.20.Format long with System.out.format
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.