Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using External Data(need help before Monday)

 
joey whitewolfe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help! I can't get it to work! do you have any suggestions? all I need it to do is save any information in a dat.file and if I haven't told you yet I'm only in High school, you guys helped me with the telephone program could you help me with this one
[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ September 14, 2002: Message edited by: Dirk Schreckmann ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say that you can't get it to work, what do you mean exactly? Which part is causing you a problem? What should that part do and what is it actually doing? Why do you think that it's doing that?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joey, like what did you have in mind when you wrote this program? What's the heat about Monday? Assignment?
-Barry
 
joey whitewolfe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it was a weekend project and is due monday
the exit the program button doesn't work I tried adding code to it but then it doesn't compile here is the second change which runs but like i said the exit button doesn't exit the program

(edited by Cindy to format code)
[ September 16, 2002: Message edited by: Cindy Glass ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do NOT use if(arg == "Submit"), use if(arg.equals("Submit")).
You have defined a variable "code", so maybe you should
put if(code.equals("E")) System.exit(0); somewhere.
[ September 16, 2002: Message edited by: Barry Gaunt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic