This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i got error msg: exception in thread "main" java.lang.NullPointerException Record.Save(Record.java:238)
how to fix it ya??
Notice that the error message is referring to line #238, and that it's in your Save method of the Record class. Now, I don't know which line is 238 in your file, since you just posted the Save method, but once you figure that out, you're halfway there--the error will be on or near that line.
Second, the error is a NullPointerException. So head to the docs and take a look at what that means. I'm guessing that it's probably the second cause they list. So look for a case near line 238 where you're assigning something that might turn out to really be "null". It helps to ask yourself things like, "What is this line of code doing?" "Is it doing what I think it's doing?" "Are these variables and objects representing what I think they're representing?"
Third, I really didn't bother wading though your code too much because, well, it's kind of a mess. If you post your code with "CODE" tages around it, that will preserve the indenting, and make it a whole lot more readable.
You may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. "Handles" aren't acceptable. You can change your display name here. Thanks!
You have got to be kidding here. Please read the JavaRanch FAQ, where you'll find a discussion on how to ask a question, including how to include only relevant portions of your code (not the whole thing), how to tell us what error you see, what you've done to try to fix it, and to clearly ask one or two relevant questions. You'll get a lot more willing help that way.
Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)