Hi all, new here and only been doing java for about a month. I am writing a blackjack game and it's almost done but I want to use a recordstore for the stats and am having a problem... Here is my code to read/write the RS

I forgot to say what the actual problem is.... When the program loads, it should read the stats (if they exist) and default to 0's if not. But, for some reason, the stats always start at 0 if they exist or not.

It's a while since I did any J2ME but I don't remember any input/outputstreams... try setRecord() & getRecord() & save your data as bytes. I think some phones don't like recordIDs which != 1... or was it 0?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org