java program to convert number into string code example Example: java how to cast int to String int i = 1234; String s = String.ValueOf(i)