Say for example that you have generated some data and would like to write up or develop a program using curve fitting so that it will generate a curve (or any other type of graph in general) or equation that best fits this set of data points?
Does anyone have any suggestions/ideas/clues as to how I can go about this? Also, I am using NetBeans for writing my code. If I need extra classes, packages or extra Java files to complete this task, how do I get NetBeans to implement these extra materials?
If you look at the jar in the Libraries section of the project tree, you will see the packages and classes that it contains. Which of those you import is up to you! I assume you know how import classes - if not, you need a beginners' book on Java.
Also Netbeans has autocomplete, so if you just start typing the name of the class you want to use in your code, it should come up in the list. When you select it, it will automatically import that class for you.