Computing.Net > Forums > Programming > JAVA -- bit string creation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

JAVA -- bit string creation

Reply to Message Icon

Name: RITstudent
Date: October 15, 2004 at 14:36:05 Pacific
OS: XP
CPU/Ram: AMD 1800
Comment:

I am building a CRC check program, i need to create a bit string with an x amount of 0's.

I am not sure if creating a for loop adding a 0 everytime would work.

any help would be appriciated, thanxs



Sponsored Link
Ads by Google

Response Number 1
Name: RITstudent
Date: October 15, 2004 at 14:59:32 Pacific
Reply:

for loop worked for me

String rbits = "" ; for ( int i = 0 ; i < rbcount ; i++ ) { rbits += '0' ; }


0
Reply to Message Icon

Related Posts

See More


Zero divided Zero Sending files using C Soc...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: JAVA -- bit string creation

Divide Bit String www.computing.net/answers/programming/divide-bit-string/11477.html

Divide bit string www.computing.net/answers/programming/divide-bit-string/11486.html

Java String Problem www.computing.net/answers/programming/java-string-problem/9097.html