Results 1 to 1 of 1
Thread: Convert to Int
- 03-06-2009, 10:18 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 1
- Rep Power
- 0
Convert to Int
String first="000100000001111111";
int first_len = first.length();
if (first_len < 32)
{
extra_len = 32 - first_len;
StringBuffer first_exBit = new StringBuffer();
for (i=0; i< extra_len; i++){
first_exBit =first_exBit.append ("0");
//System.out.println("first_exBit value : "+first_exBit);
}
first_value = first_exBit+first;
System.out.println("first_exBit value1 :"+first_value);
}
------------------------------
the problem that i have is, i want to put the string value into an array and do some data manupulation.
thanks
Similar Threads
-
cannot convert from int to int[][]
By besweeet in forum New To JavaReplies: 9Last Post: 04-18-2010, 04:36 AM -
How to convert a double into a int?
By tyang in forum New To JavaReplies: 4Last Post: 02-10-2010, 11:02 AM -
convert XML using XSL
By rajjan4u in forum XMLReplies: 3Last Post: 11-20-2009, 05:37 PM -
how to convert xml to xsd
By adi in forum XMLReplies: 2Last Post: 02-12-2009, 03:43 PM -
need the help to convert to and from UTF-8 and UCS-2
By sachin_n in forum Advanced JavaReplies: 1Last Post: 01-05-2009, 10:35 PM
Bookmarks