Sep 05

Use static method Long.toString()

long l = 123L;
String s = java.lang.Long.toString(l);

// An alternative would be to
// use the following string concatenation

String s2 = "" + l;

written by objects \\ tags: , ,


Leave a Reply

You must be logged in to post a comment.