Hi, I will be using this to document my progress on my first solo Java project. I will be taking notes on anything I've learned from this project and posting them here for feedback. Criticism is praised, wether it be on my notes or my actual programming.
The aim is to perfect every step of my programming technique from the initial design phase to the coding and debugging.
The project I am making is a database that will store data for types of computers. I will then create a search function and a GUI so that someone could search the database for specific criteria. I will be basically posting notes with questions included as I make progress and hopefully you guys can give me some pointers if I need any help.
So first of all I need a constructor for Computer. The variables for this class will beint processorSpeedShould these be static variables?
String processorBrand
String processorModel
String computerBrand
int amountOfRam
int numberOfUsbPorts
boolean wiredEthernet
boolean wirelessAdapter
boolean laptop
boolean desktop
Organizing The Data
I think I'm going to put the data in arrays and within the classes define it as an array index.
This way my search function can match the array values with the chosen search criteria.
And if they all match , it will return that laptop. If not it will return a string statement and suggest an alternative laptop that meets 5/7
of the selected criteria.
After the data is stored in the individual classes, I must create a GUI with buttons corresponding to each variable.
If any of the buttons is selected, it is included in the search criteria that my search function will use.
GUI NotesThe GUI will be a basic window(300,300).
There should be a file menu at the top with the option to exit the program and an option to restart the program.
There will be radio buttons for each class variable.
And a search button.
Search Function Notes
Not sure where to even start on this.
Code as of 9/9/14
public class Data { public Data() { // TODO Auto-generated constructor stub } public static void main(String[] args) { // TODO Auto-generated method stub } public void Computer() { int processorSpeed; String processorBrand; String processorModel; String computerBrand; int amountOfRam; int numberOfUsbPorts; boolean wiredEthernet; boolean wirelessAdapter; boolean laptop; boolean desktop; } }