English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need this for the conversion to PDU format.

Thanks and regards
Niversphere.

2006-07-05 04:44:45 · 2 answers · asked by Niversphere 1 in Computers & Internet Software

The assumption cannot be true. It has to be including text. Thanks .

2006-07-06 01:50:00 · update #1

2 answers

Convert the string to an Integer and then convert it to a hex string (assuming the initial string was a decimal)

int decimal = Integer.parseInt(String initialString);
String hex = Integer.toHexString(decimal);
String binary = Integer.toBinaryString(decimal);

To convert back:
int newDecimal = Integer.parseInt(hex,16);
int newDecimal2 = Integer.parseInt(binary,2);

I hope this helps.

2006-07-05 05:08:46 · answer #1 · answered by Ankit 1 · 0 0

please look at java documents
String class functions,...

2006-07-05 12:05:59 · answer #2 · answered by iyiogrenci 6 · 0 0

fedest.com, questions and answers