• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java I/O and arrays  RSS feed

 
Stephen Murphy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, I am trying to create a morse code translator. I am reading the Key from a txt file, storing it in an array, and then tranlating from there. My problem is: When the program runs, it stores the first line in the array, then seems to stop running. No exception is thrown. I usually just kill the run and try again, but I can't seem to get it fixed no matter what I do. My code looks like this

[ April 14, 2004: Message edited by: Patrick Murphy ]
[ April 14, 2004: Message edited by: Patrick Murphy ]
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My best advice to you would be a liberal sprinkling of System.out.println's throughout your code. One after every loop statement, for example, to illustrate where your program logic is getting stuck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!