public static void findNumbersWithSum(int[] array,int sum){
		if(array.length < 0){
			return ;
		}
		int begin = 0;
		int end = array.length - 1;
		int curSum = 0;
		while(begin < end){
			curSum = array[begin] + array[end];
			if(curSum == sum){
				System.out.println(array[begin] + " " + array[end]);
				break;
			}else if(curSum > sum){
				end --;
			}else{
				begin ++;
			}
			
		}
	}