to string java code example
Example 1: int to string java
int x = 3;
Integer.toString(int)
Example 2: java int to string
Integer.toString(n)
Example 3: android studio int ot string
Integer.toString(int)
Example 4: tostring method in java
public class Test {
public static void main(String args[]) {
Integer x = 5;
System.out.println(x.toString());
System.out.println(Integer.toString(12));
}
}
Example 5: how to convert integer to string' in java
StringBuilder sb = new StringBuilder();
sb.append("");
sb.append(number);
return sb.toString();