### Question:
Spelling { String removeCharAt(String word, int pos) { int c = 0; int d = 0; char[] e = new char[word.length() - 1]; while (c < word.length()) { if (c != pos) { e[d++] = word.charAt(c); } c++; } return new String(e); } Spelling(InputStream file);   }### Answer:
@Test public void testRemove() throws Exception { assertEquals("arm", spelling.removeCharAt("farm", 0)); assertEquals("frm", spelling.removeCharAt("farm", 1)); assertEquals("fam", spelling.removeCharAt("farm", 2)); assertEquals("far", spelling.removeCharAt("farm", 3)); }