Results 1 to 2 of 2
  1. #1
    rueter is offline Member
    Join Date
    Jun 2009
    Posts
    1
    Rep Power
    0

    Smile Bit Wise operation: shifting

    Hi,

    I have an integer array of size 90, the content of which is 0's & 1's (Basically a binary stream saved in an integer array)

    I need to process this data in 10 chucks, each of size 9, and prefix each chunk with a 7 bit data (0000000).

    This means, the original 9-bit data in array index 0 to 8 would need to shift to index 7 to 14 and array index 0 to 6 would need to get filled with the 7 bit data (0000000).

    Also this would cause the array size to increase from original size of 90 to 160 (original size of 90 + 10 times 7 bit data = 160)

    How do I do this? Is there some kind of array bit wise shift possible?

    Thank you - Rueter

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

Similar Threads

  1. Shifting characters in array
    By Mayur in forum New To Java
    Replies: 2
    Last Post: 04-24-2009, 10:19 PM
  2. How rmi preferable than http for Performance wise??
    By Kishore Kumar in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 03-23-2009, 12:18 PM
  3. [Beginner]Eclipse RCP Undo/redo operation
    By pollux in forum Eclipse
    Replies: 2
    Last Post: 02-18-2009, 06:39 PM
  4. [SOLVED] Shifting an array
    By VeasMKII in forum New To Java
    Replies: 2
    Last Post: 02-04-2009, 06:18 PM
  5. Frame close operation
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-21-2007, 08:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •