Java long to String

We can convert long to String in java using String.valueOf() and Long.toString() methods.

Scenario

1) String.valueOf()

public static String valueOf(long i)

EXAMPLE

Flash Soon



1) 2) Long.toString()

public static String toString(long i)

EXAMPLE

Flash Soon



Advertisement

© Sapster 2017