This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

calculate the amount values stored form recordstore in J2ME midlet  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear all,
l am doing a project about how to calculate the amount expenses.Is there anyone
can help and guide me to write the codes for the program.Cus l am really need your help urgently.Hope taht anyone can help me.Thank you very much
besides, if possible that anyone also can help me with my "View Record" in the project.Because after l have deleted record and added new record,l cannot view the added record and having problems with program.
l will enclose with my source codes here.
Hope you could help me.Thanks
 
Trailboss
Posts: 22892
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't suppose you could narrow the problem down to a few lines of code ...
 
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Paul Wheaton:
I don't suppose you could narrow the problem down to a few lines of code ...


You should have seen the original. It was over 10,000 lines of code.
Mark
 
Mark Spritzler
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First thing I would do Wentrace, is to break up your class into a few classes. It looks like you gave the GUI, the Business Logic, and the Record Store code all in one place. By spliting this into seperate classes, you will be able to debug, enhance, and maintain your code better.
Also it will make less code for you to post here for us to look at.
Right now, unfortunately because it is all one big glob of code, it is almost impossible for us to look at it and figure out your issue.
Also, you might want to redo your indentation. Whenever you hit a braces, you should indent all your next code with 4 spaces, until you hit the end of the braces, then bring the indentation back. It makes the code much easier to read and follows Sun's coding standards.
Looking at your code a little closer, it looks like you have a few inner classes. Do these classes have to be inner classes, or can you split them out, and just create instances when you need them.
Other than that, I can't figure out your problem with the RecordSource, because I can't tell where that code is in your example.
But the suggestions that I have made can really help you out, to help isolate where the actual problem resides.
Mark
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!