Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

I need to save the project after doing math operation between the cases

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

so this is my main project i need to do math operation after the total rows like multi then add.
and this is the pathsave operation i want to add save fonction to it
Posts: 72478
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch You have been moved to a more appropriate forum.

I added code tags to your code, and doesn't it look better now Unfortunately the code tags highlight poor formatting. Don't write multiple declarations on the same line (line 8). Put some spaces in your code; line 23 is very difficult to read. What's Némuro? Should that read Numéro?
Don't write } or { twice in the same line (line 55) except in array initialisers.
Change line 23 to use an array initialiser and divide it into several lines:-Design: don't subtype JFrame. You are not creating a different type of JFrame but adding components to it. Your application ISN'T A JFrame, but it HAS A JFrame. Start by writing your application to do the maths without a GUI at all. Run it from the command line and save the total to a file. Decide whether you are going to create a serialisable object to incorporate the total, or whether you are writing the total to a random access file or a text file. You will find out about both those kinds of file in the Java™ Tutorials.
Don't use Date (lines 6 and 21). Use the classes described in the Java™ Tutorials, probably LocalDate.
Why are so many fields declared in line 8? I think most of those can be changed to be local variables. Most local variables should be declared as type var.
Forget Steve. Look at this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
    Bookmark Topic Watch Topic
  • New Topic