Binary search, from java to Actionscript
问题 I am trying to convert the following java binary search routine to as3. I assume that 'compareTo' is a built in java method and that '>>>' s a type of bitwise operation. Can anyone familiar with both actionscript 3 and Java help with this? package binary; public class Finder { public static int find( String[ ] keys, String target) { int high = keys.length; int low = -1; while (high - low>1) { int probe = (low + high)>>> 1; if (keys[probe].compareTo(target) > 0) high = probe; else low = probe;