Please support our Java advertiser: Lunarpages Java Web Hosting
•
•
•
•
Yes I do know that a boolean array is an array of booleans, but when you said binary array, I wasn't sure if you meant the array of integers, as I've never actually heard of a "binary" array. In the op the text I copy and pasted seems to refer to an array of booleans, while the test data hes provided (http://www.shenet.org/high/hsacaddep...od%20Pract.pdf) here, (problem n, seems to show the input as an int.
He refered to it as a "binary aray" because that is essentially what a boolean array is. Binary is 1 or 0, boolean is true or false. So, in the sense of this homework assignment, that boolean array is a binary array. Each boolean array element is one bit in the binary sequence.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Similar Threads
Other Threads in the Java Forum
- Weird ASP/SQL Problem (ASP)
- binary to decimal problem (C++)
- binary integer logic (IT Professionals' Lounge)
- Exercise using: unsigned int datecode(int year, int month, int day); (C++)
- not-a-virusadware (Viruses, Spyware and other Nasties)
- Reversing Integer, Magic Squares, and LCM problems (Java)
- Weird IE6 printing problem... (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: C programmers guide to Java
- Next Thread: StringUtil
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)







Threaded Mode