D
Daqian Yang
Hi,
string s = "1001";
we I convert s to an integer? thanks.
string s = "1001";
we I convert s to an integer? thanks.
Daqian said:Hi,
string s = "1001";
we I convert s to an integer? thanks.
Daqian Yang said:Hi,
string s = "1001";
we I convert s to an integer? thanks.
Chris said://Try this to get a static int
static int number = Integer.parseInt(s);
//or this for non-static
int number = Integer.getInteger(s).intValue();
Daqian said:Hi,
string s = "1001";
we I convert s to an integer? thanks.
Daqian said:sorry, the question may not be clear.
Let's say:
String s = "1001";
now I want an integer which is 9 which is 1001 based 2.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.