public static int[] sortTwoSortedArrays(int[] a, int[] b) {
	
		int[] c = new int[a.length+b.length];
		int aInd = 0;
		int bInd = 0;
		int cInd = 0;
		
		while (cInd < a.length + b.length) {
			if ( (aInd<a.length && bInd<b.length && a[aInd]<=b[bInd]) || (aInd < a.length && bInd >= b.length)) {
				c[cInd] = a[aInd];
				aInd++;
			} else {
				c[cInd] = b[bInd];
				bInd++;
			}
			cInd ++;
		}
		
		return c;
	}