001 002 public class Search { 003 004 public static void main (String[] args) { 005 byte[] b = new byte[1100000000]; 006 b[b.length - 1] = 1; 007 int index = java.util.Arrays.binarySearch(b, (byte)1); 008 System.out.println("index = " + index); 009 } 010 011 }