I am trying to replicate the behavior of javascript bit-shift and bit-wise operations in java.
Did you ever try to do this before, and how can you do it reliably and consistently even with longs?
  var i=[some array with large integers];
  for(var x=0;x<100;x++)
  {
    var a=a large integer;
    var z=some 'long'>2.1 billion;
    //EDIT:
    z=i[x]+=(z>>>5)^(a<<2))+((z<<4)^(a<<5));
  }
what would you do to put this into java?