public static char[] encodeText(char[] c, int n, char[] A) {
		char[] o = new char[c.length]; //create an array to output encrypted message
		for (int i = 0; i < c.length; i++) {
			//if array elemnt is punc. mark or space, copy it
			if (c[i] == ' ' || c[i] == '.' || c[i] == ',') o[i] = c[i];
				//else, find in alphabet and shift for n
			else {
				alph:
				for (int j = 0; j < A.length; j++) {
					if (A[j] == c[i]) {
						o[i] = A[(j + n) % A.length];
						break alph;
					}
				}
			}
		}
		return o;
	}