diff --git a/getDocumentType.java b/getDocumentType.java new file mode 100644 index 0000000..1cea59d --- /dev/null +++ b/getDocumentType.java @@ -0,0 +1,12 @@ +public String getDocumentType(String input) throws Exception { + + String formattedInput = input.toLowerCase(); + + switch (formattedInput) { + case "uuid": + return "E"; + default: + throw new Exception("Invalid Document Type"); + } + + }