Meins
public text v1 · immutable public static void main(String args[])
{
int j = 0;
int[] testArray = new int[2001];
for (int i = 0; i < testArray.length; i++)
{
testArray[i] = (int) (Math.random() * 1000000000 );
}
Arrays.sort(testArray);
j = testArray[1329];
System.out.println("zu suchendes Element: "+j);
System.out.println(binSearch(testArray, j));
System.out.println(binSearch(testArray, j+1));
}