James Ellis wrote:I am trying to reverse engineer some PHP. This PHP code does a right bit shift operator on a string variable.
All the right bit shifts I have seen are for integers. Can I perform a right bit shift operator on a String in Java?
I can't imagine what shift on a String variable would make any sense or have any value.
Do you perhaps mean a byte or char variable containing characters?
Java String variables are Unicode, shifting the whole data array a few bits would make a real mess.