conert a long to string in java code example
Example 1: toString convert to long
long l = 12345L;
String str = new StringBuilder().append(l).toString();
Example 2: toString convert to long
long l = 369L;
String s = String.format("%d", l);
long l = 12345L;
String str = new StringBuilder().append(l).toString();
long l = 369L;
String s = String.format("%d", l);