• Post Reply Bookmark Topic Watch Topic
  • New Topic

program compiles and runs, but no output shown on screen  RSS feed

 
buer Jiang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


 
Winston Gutkowski
Bartender
Posts: 10574
65
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi buer, and welcome to Java Ranch.

1. When you post code, please UseCodeTags (←click). I've added them for you this time, but your indenting still isn't correct, so you might want to edit your post (just use the 'Edit' button, and before you save your changes, use the 'Preview' button to see if it looks OK).
2. I'm not quite sure what you want us to do. That's an awful lot of code.

Winston
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16047
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The program will read data from a file named accounts.txt and then print information on what it found in the file.

Do you have a file accounts.txt? Does it contain data in the format that the program expects?
 
Campbell Ritchie
Marshal
Posts: 56221
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also have much repeated code. I think you might do well to think of an abstract class to hold that repeated code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!