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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 2 of 2

Thread: Perfecting My Designing Technique

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Perfecting My Designing Technique

    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 be
    Should these be static variables?
    int processorSpeed
    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 Notes
    The 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;
     
    	}
     
    }


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 697 Times in 679 Posts

    Default Re: Perfecting My Designing Technique

    This is not the appropriate place to blog your programming activity.

    I'm closing this thread for now, because it's the most appropriate option available to me. When you've established a blog elsewhere and would like to add that note to this thread, please let me know via PM, and I'll add a mention of your blog for a short time before deleting or hiding the thread entirely.

    Keep coding!

Similar Threads

  1. the pass by reference technique in java
    By dean_corso in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 28th, 2014, 04:01 PM
  2. Need a algorithm format of Butterfly Sub division technique
    By balaji040 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 17th, 2014, 04:26 AM