int cannot be converted to string error in java
public static void main(String[] args) { int x = 456; String s; s = Integer.toString(x); s = String.valueOf(x); s = String.format("%d", x); s = x + ""; }
Source: www.quora.com
public static void main(String[] args) { int x = 456; String s; s = Integer.toString(x); s = String.valueOf(x); s = String.format("%d", x); s = x + ""; }