Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] args) { int[] unsorted = { -3, 10, -4, 11, 5, 1, 2 }; System.out.println(Arrays.toString(unsorted)); int[] sorted = unsorted; Arrays.sort(sorted); System.out.println(Arrays.toString(sorted)); int breakingPoint = Arrays.binarySearch(sorted, 5); for (int i = breakingPoint; i < sorted.length; i++) { System.out.println(sorted[i]); } } }