File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!