//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