Java String to int

We can convert int to String in java using String.valueOf() and Integer.toString() methods.

Scenario

1) String.valueOf()

public static String valueOf(int i)

EXAMPLE

Flash Soon



1) 2) Integer.toString()

public static String toString(int i)

EXAMPLE

Flash Soon



Advertisement

Copyright ©2017 Design& develop