/***************************************************************
 * Author: Thomas Kramer                                       *
 * Purpose: To get input from the user                         *
 * Date: 15/04/2016 3:23apm                                    *
***************************************************************/


import java.util.*;

public class DataInput
{
//Need to add Validation for ReadMorse so string only contains valid characters
    public static String readMorse()
    {
        {
            Scanner sc = new Scanner(System.in);
            boolean specialCharacters = true;
            String inputtedString = "";
            System.out.println("Please enter the text you would like to convert to Morse Code:");
            inputtedString = sc.nextLine();
            return inputtedString;
        }   
    }

    public static String readEnglish()
    {
        Scanner sc = new Scanner(System.in);
        boolean specialCharacters = true;
        String inputtedString = "";
       do{    
        System.out.println("Please enter the text you would like to convert to Morse Code:");
        inputtedString = sc.nextLine();
        specialCharacters = CheckStringContainsSpecialCharacters.containsSpecialCharacters(inputtedString);
        if (specialCharacters == true){
            System.out.println("Sorry you can't convert special characters.");
        }
       }while(specialCharacters == true);
        return inputtedString;
    }    

}

@@ -370,88 +370,9 @@
 t%0A%7B%0A
-//Need to add Validation for ReadMorse so string only contains valid characters
 %0A
+
     
@@ -551,24 +551,43 @@
 tring = %22%22;%0A
+           do%7B    %0A
             
@@ -664,32 +664,32 @@
  Morse Code:%22);%0A
-
             inpu
@@ -708,32 +708,331 @@
  sc.nextLine();%0A
+            specialCharacters = CheckStringContainsSpecialCharacters.containsSpecialCharacters(inputtedString);%0A            if (specialCharacters == true)%7B%0A                System.out.println(%22Sorry you can't convert special characters.%22);%0A            %7D%0A           %7Dwhile(specialCharacters == true);%0A
             retu
@@ -1709,9 +1709,8 @@
 %7D    %0A%0A%7D
-%0A

Revert "Update DataInput.java"