public static char[] cs(int n) throws Exception {
   for (int i = 1; i <= n; i++) tempchars[i] = in.nextCharacter();
   return tempchars;
 }
 public static char c() throws Exception {
   return in.nextCharacter();
 }