• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Using External Data(need help before Monday)

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic