This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes morse code converters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "morse code converters" Watch "morse code converters" New topic

morse code converters

Lydia Su

Joined: Apr 27, 2001
Posts: 13
does anyone know how to read the dots and dashes when you convert morse code into english phrases??? i'm stumped here....i've tried the charAt() methods but i don't think that's right...morse code is made up of about 5 or so dots and to read them? and there must be spaces in between too...between every letter is a space, between every word is three spaces...
hope someone can help me...? ^_~
Art Metzer
Ranch Hand

Joined: Oct 31, 2000
Posts: 241
Hmmm...have you tried java.util.StringTokenizer? You may have to modify it, though, to break on words and letters, since I don't think passing three spaces to its constructor will give you the word-splitting behavior you seek.
I agree. Here's the link:
subject: morse code converters
Similar Threads
Boone's mock exam Q47
converting morse code to english
String - Remove dashes from text
WA #1.....word association
The best puzzle(IIM Indore)