Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

morse code converters

 
Lydia Su
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 dashes....how 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
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Art
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic