RSS Forums RSS
Please support our Java advertiser: Lunarpages Java Web Hosting

Weird Binary to Integer Problem

Join Date: Feb 2006
Posts: 1,594
Reputation: masijade is a name known to all masijade is a name known to all masijade is a name known to all masijade is a name known to all masijade is a name known to all masijade is a name known to all 
Rep Power: 11
Solved Threads: 147
masijade's Avatar
masijade masijade is online now Online
Posting Virtuoso

Re: Weird Binary to Integer Problem

  #11  
Nov 18th, 2007
Originally Posted by rpk5000 View Post
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
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:43 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC