public static int divide(int a, int b){
		boolean negative = false;
		if(a<0 && b<0) negative = false;
		else if(a<0||b<0) negative = true;
		a = Math.abs(a);
		b = Math.abs(b);
		
		int prod = 0;
		int result = 0;
		while(prod + b <= a){
			prod += b;
			result++;
		}
		
		if(negative) result = negate(result);
		return result;
		
	}