Answers for "convert long in string java"

1

cast long to string java

long longV = 1L;
System.out.println(String.valueOf(longV));
Posted by: Guest on July-08-2021
8

string to long java

Long.parseLong("0", 10)        // returns 0L
 Long.parseLong("473", 10)      // returns 473L
 Long.parseLong("-0", 10)       // returns 0L
 Long.parseLong("-FF", 16)      // returns -255L
 Long.parseLong("1100110", 2)   // returns 102L
 Long.parseLong("99", 8)        // throws a NumberFormatException
 Long.parseLong("Hazelnut", 10) // throws a NumberFormatException
 Long.parseLong("Hazelnut", 36) // returns 1356099454469L
 Long.parseLong("999")          // returns 999L
Posted by: Guest on June-21-2020

Code answers related to "convert long in string java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language