• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UGENT!!!!

 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My program has a data structure that holds 2^35 different values. I have allocated an array of 2^35 bytes. Everything works fine except it won't compile and won't run either. But this isn't my problem. My problem is that I need each array element to be able to hold one of 512 different values. So my question is, how do I create an array of nine bit variables in Java? I am using JDK 0.9b1 on AmigaOS (running inside VMWare on RTos.)
Pls help me now!!! Send answer to ernest@hotmail.com as I don't normally read this forum.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some urgent work right now so cant reply. I will reply when I am free.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it would be easier to code if you used nine separate array entries of one bit each. Since that is a like a boolean you can use the Boolean class which will make your program much more Object Oriented.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I create my own thread in this section!
It's really URGENT!
I want to do something with c# as my teacher told me.
PLZ PLZ PLZ!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic