public static String printPolynomial(int[] x) {
		if ( x.length == 1 ) {
			return new String("" + x[0]);
		}
		// Else ( x.length > 1 ). 
		String s = "";
		if ( x[x.length-1] > 0 ) {
			s += ( x[x.length-1] > 1 ) ? x[x.length-1] + "x^" + (x.length-1) : "x^" + (x.length-1);
		}
		for ( int i = x.length-2; i >= 1; i-- ) {
			if ( x[i] > 0 ) {
				if ( x[i] > 1 ) {
					s += " + " + x[i] + "x^" + i;
				} else { // x[i] == 1
					s += " + x^" + i;
				}
			}
		}
		if ( x[0] > 0 ) {
			s += " + ";
			s += ( x[0] > 1 ) ? x[0] : "1";
		}
		return s;
	}