I am having difficulty with a Java question – writing an English to Morse Code/Morse Code to…

I am having difficulty with a Java assignment – writing an English to Morse Code/Morse Code to English translator. I have 4 null pointer errors (see attachment). Can someone explain to me what that means, why I have it in my code, and how to fix it? Any other feedback on potential issues within my code would be helpful. I’m still learning the subject material (hence the detailed comments) and would greatly appreciate an explanation to prevent this in the future. /** * This program translates Morse Code into English and English into * Morse Code. Program prompts user to select desired translation, * receives user string input, and translates appropriately. * * @author * */ import java.util.Scanner; public class MorseCodeTranslator { //Private English Array; accessible but immutable private static Character [] English; { /* * Define as a character array of English letters & numbers so * it can be compared and converted later */ English = new Character[] {‘A’, ‘B’, ‘C’, ‘D’, ‘E’, ‘F’, ‘G’, ‘H’, ‘I’, ‘J’, ‘K’, ‘L’, ‘M’, ‘N’, ‘O’, ‘P’, ‘Q’, ‘R’, ‘S’, ‘T’, ‘U’, ‘V’, ‘W’, ‘X’, ‘Y’, ‘Z’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ‘0’}; } //Private Morse Code Array; accessible but immutable private static String [] Morse; { /* * Define as an array of strings to hold value of every English * letter & number in the same indexed order as the English * character array */ Morse = new String[] {“.-“, “-…”, “-.-.”, “-..”, “.”, “..-.”, “–.”, “….”, “..”, “.—“, “-.-“, “.-..”, “–“, “-.”, “—“, “.–.”, “–.-“, “.-.”, “…”, “-“, “..-“, “…-“, “.–“, “.–“, “-..-“, “-.–“, “–..”, “.—-“, “..—“, “…–“, “….-“, “…..”, “-….”, “–…”, “—..”, “—-.”, “—–“}; } public static void main ( String[] args ) { //Create a scanner to obtain user input Scanner input = new Scanner ( System.in ); //Request user to select type of translation System.out.println(); System.out.println ( “Please enter “1”” or “”2″” to select your “” + “”translation type: “” ); System.out.println ( “”1 Translate Morse Code into English”” ); System.out.println( “”OR””); System.out.println ( “”2 Translate English into Morse Code”” ); //Input user selection into variable translationType String translationType = input.nextLine(); //Morse Code To English if ( translationType.equals ( “”1″” ) ) { //Request user to input sentence for translation System.out.println ( “”Please enter a sentence in Morse Code. “” + “”Separate each letter/digit with a single space and “” + “”delimit multiple words with a |.”” ); //Input user selection into variable morseSentenceToTranslate String morseSentenceToTranslate = input.nextLine(); /* * Call method translateMorseCodeToEnglish * Pass String variable morseSentenceToTranslate */ translateMorseCodeToEnglish ( morseSentenceToTranslate ); } //English to Morse Code else if ( translationType.equals( “”2″”) ) { //Request user to input sentence for translation System.out.println( “”Please enter a sentence in English and “” + “”separate each word with a blank space. “” ); //Input user selection into variable englishSentenceToTranslate String englishSentenceToTranslate = input.nextLine(); /* * Convert user sentence to upper case to match format of * Private English array */ englishSentenceToTranslate = englishSentenceToTranslate.toUpperCase(); /* * Call method translateEnglishToMorseCode * Pass String variable englishSentenceToTranslate */ translateEnglishToMorseCode ( englishSentenceToTranslate ); } else { System.err.println ( “”Invalid Input. Please enter either “” + “”1 or 2″” ); //Repeat & discard the previous invalid inputs input.next(); } input.close(); } /** * Translates Morse Code into English * @Param morseSentenceToTranslate indicates user input Morse Code; * expects String * @Return English string sentence with equal character length */ public static void translateMorseCodeToEnglish ( String morseSentenceToTranslate ) { /* * Create array of user-entered Morse Code “”words”” by splitting * user input into parts. Split words using character | */ String words [] = morseSentenceToTranslate.split ( “”\|”” ); /* * For each indexed element [i] in user-entered word array