Not having written anything to play with it, I'm fairly impressed.

Assuming you wrote this all by hand, I'd guess from it's succinctness
that you've probably heavily debugged and optimized.

The math to convert integers into binary is a complex enough little
loop to come up with, but what I really like is how you've overloaded
toBinary to accept so many different argument.

It's quite a bit of work up front, but that should save any
applications you build using this class from having to do that work,
and makes it flexible enough to be useful in a lot of different
situations.

I take it you're aiming at, or have already scored, a 5 on the AP exam? :-)

Simón

On Fri, May 28, 2010 at 10:42 PM, Wade Crick <[email protected]> wrote:
> Well, this past Thursday, I stayed after school with Mr. Dailey (most of you
> probably know him as Ben). He taught me how binary code is generated with IP
> addresses and how it takes ASCII codes for other characters. It's a fully
> loaded class that can generate a specific number of bits, and can translate
> numbers, Strings, and characters.
>
> http://pastie.org/private/an5mlezb7px6c66sdgltcq
>
> Please send me what your opinions are.
>
> note: I purposely didn't use the java.util.ArrayList class because I wanted
> to not import any other classes rather than the java.lang classes.
>
> _______________________________________________
> Fwlug mailing list
> [email protected]
> http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org
>
>

_______________________________________________
Fwlug mailing list
[email protected]
http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org

Reply via email to