Answers for "long string java"

2

toString convert to long

long l = 12345L;
String str = Long.toString(l);
System.out.println(str); //prints '12345'
Posted by: Guest on June-08-2020
0

toString convert to long

long l = 12345L;
String str = String.valueOf(l); // str is '12345'
Posted by: Guest on June-08-2020
0

long in java

long l = 12345L;
String str = String.valueOf(l); // str is '12345'
Posted by: Guest on June-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language