xxxxxxxxxx
#include <iostream>
#include <string>
using namespace std;
int main() {
string str = "7";
int num;
num = (int) str;
}
xxxxxxxxxx
String s = String.ValueOf(x); //converts a int x to a String s
//or
String s = Integer(x).toString(); //converts a int x to a String s
xxxxxxxxxx
int number = 36789;
--->
String s1 = number+"";
String s2 = String.valueOf(number);
String s3 = Integer.toString(number);