Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Basic coding format for a program I'm designing?

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Thanked 0 Times in 0 Posts

    Lightbulb Basic coding format for a program I'm designing?


    I apologize in advance; I'm teaching myself to code java, so I'm a super-beginner and this may make zero sense.

    I'm designing a program for my internship in which every day a user will be able to input the number of patients receiving each drug we're planning on cataloging, that data will be stored, and then the program will be able to provide some basic statistical analysis for each drug based on the data collected from the last 10 days. Note: the input data will always be integers between 0-100

    What I'm looking for is some insight into what the best basic format for the program i.e. what should I use for data storage (java databases and tables, object inputs, etc.?) and user input (option panes, java forms, etc.?). I can learn how to code anything from online articles and tutorials, there's just too many options for a beginner like myself to sort through and choose the most effective for each step of my program.

    Thanks a million! Sorry again if this is confusing!!!

  2. #2
    Senior Member
    Join Date
    Jul 2013
    Thanked 121 Times in 105 Posts

    Default Re: Basic coding format for a program I'm designing?

    Hard to say, these things are not standardized.
    For example, if you want to save the data to the hard drive, you could use Serialization, or XML (or similar formats) or a custom format, or one of my other possibilities.
    For the GUI you can use Swing (which is highly recommended), or SWT, or even native API's like qt (which I would definitely NOT recommend).

    If you are a complete beginner I would advice you to not try to aim too high right from the start. Try something small first and slowly work yourself to your goal.
    A big project with a GUI and data that needs to be saved to disk is not a simple project and will take many many weeks of hard work.

  3. The Following User Says Thank You to Cornix For This Useful Post:

    kateemunster (June 16th, 2014)

  4. #3
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 698 Times in 680 Posts

    Default Re: Basic coding format for a program I'm designing?

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    It's good to have a project in mind to motivate your studies, but it's not good to begin your study by ping-ponging from topic to topic that you think you might need to complete that project but aren't entirely sure. Step back, get a book, and start at the beginning. Give yourself a few months to learn the basics, depending on your aptitude and how hard you're willing to work. After you've gotten through 8 - 10 chapters, you will have been introduced to most if not all of the skills you'll need to do this project, and then you can come back to it.

  5. #4
    Member Abhilash's Avatar
    Join Date
    Jun 2014
    Kolkata, West Bengal, INDIA
    My Mood
    Thanked 10 Times in 10 Posts

    Default Re: Basic coding format for a program I'm designing?

    Cornix is right. If you are really a beginner, you should focus on the basics right now and practice before you aim high, unless this program is very important for you to make. Otherwise, if you practice, you will be able to make programs like these by yourself. Believe me, practicing is the only option to succeed.

Similar Threads

  1. Help designing a class hierarchy for a Java program
    By zmsras in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 21st, 2014, 03:31 AM
  2. program coding
    By rajeev_sivaraman in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 16th, 2013, 02:50 AM
  3. Program Breaks When In Jar Format
    By tyeeeee1 in forum What's Wrong With My Code?
    Replies: 11
    Last Post: December 9th, 2012, 02:36 PM
  4. Very basic coding question, I'd appreciate feedback.
    By amsh in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 15th, 2012, 01:35 PM

Tags for this Thread