Java int to string

int to String

  1. s = Integer.toString(i);
  2. s = String.valueOf(i);
  3. s = i + “”;

String to int

  1. i = Integer.parseInt(s);
  2. i = Integer.valueOf(s).intValue;