Quantcast
Channel: web development helpdesk » long
Viewing all articles
Browse latest Browse all 4

How to convert a long to a String in Java?

$
0
0
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;

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images