Convert long to String in Java
Description
The following code shows how to convert long to String.
Example
//from www. j ava2 s. co m
public class Main {
public static void main(String[] arg) {
long b = 12L;
System.out.println(String.valueOf(b));
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »