Commits

Alexander Nordlund committed 808acfc

Arrays.toString(String[])

  • Participants
  • Parent commits 35326ef

Comments (0)

Files changed (1)

File InputHandler.java

 package local.alex.conveniences;
 
+import java.util.Arrays;
 import java.util.Scanner;
 import org.omg.CORBA.DynAnyPackage.InvalidValue;
 
 								return s;
 							}
 						}
-						// TODO: replace extras.toString()
 						throw new InvalidValue(input
 								+ " is invalid, must be one of:"
-								+ extras.toString());
+								+ Arrays.toString(extras));
 					} else {
 						return input;
 					}
 				}
 			} catch (InvalidValue e) {
-				System.out
-						.println("Invalid input, please enter one of the choices.");
+				System.out.println(e.getMessage());
 			}
 		}