//This is where I create two strings one called alphabet containing the english alphabet and the other called morse which contains the morse equivalents
//This section of code creates the int i and sets it to 0. it then states that for each time i is less than morse's length increment it by one and then run the code below
for(inti=0;i<morse.length;++i){
//This section of code compares the string Morse to the String morse based on the value of i
if(Morse.equals(morse[i])){
//This section of code returns the alpha value of morse if they both match
returnalpha[i];
//This section of code returns the alphabet value of morse if they both match
returnalphabet[i];
}
}
...
...
@@ -88,4 +88,5 @@ public class AssessmentPartFour {