You know Morse Code, right? No? Too bad! Google It!
You were supposed to message your significant other during my class. But alas! I will catch your mobile phones if you take them out during the class. So, how do you do that? Simple! On a piece of paper. But wait a minute, you don't want the message to be seen or read by any other students. So, you decide to encode it in Morse Code. Why? Because.
So, write a program in Java for yourself, so that you enter a message and the program converts that message into Morse Code Equivalent. Create a function for the same.
Example