• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

morse code converters

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...? ^_~
 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic