0 votes

1 Answer

0 votes
by
how to convert integer to string in java?

class ABC

{

  public static void main(String args[])

  {

    int a = 789;

    int b = 123;

    String str1 = Integer.toString(a);

    String str2 = Integer.toString(b);

    System.out.println(""String str1 = "" + str1);  

    System.out.println(""String str2 = "" + str2);

  }
...