Search:

Type: Posts; User: javaStooge

Search: Search took 0.09 seconds.

  1. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    Fantastic. Thank you Norm.

    I created the splits, but when I run the program I can't get the gui to load. There are no errors in the code, but GUI won't load to test. I instantiated a person...
  2. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    I have a JPanel called addPanel, which is where new contact can be added to list. Given that each contact can have multiple emails, phone numbers, and addresses...how can I allow the user to enter...
  3. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    Yes. We are not supposed to use either imports. So, should "ArrayListX" be renamed, for example, AddressBook?
  4. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    Clearly I don't know what I'm doing because nobody understands what I'm trying to explain. The example give by our professor had a List interface:

    public interface List <T>
    {
    //append
    public...
  5. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    It can, as far as I can tell...it's a generic type. I was going to give it the type Contact (ArrayListC<Contact> contacts = new ArrayListC<>(); ). I've never used arraylist before and I'm trying to...
  6. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    "You are to design a Java application using the list data structure to manage your contact information. Each contact may have the following data:
    name
    addresses
    e-mails
    phones
    group
    Each...
  7. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    Originally I had the class named differently until I spoke with someone that said I should name it ArrayList.
  8. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    Gladly. I'd like to add that I am a little confused as to how I should code the program so that each contain can have 'x' number of emails, addresses, and phone numbers. Not sure I've coded for this...
  9. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    I've created a List<T> interface that is implemented by class ArrayList<T>, where the methods are defined in greater detail. I have a third class, Contact, which contains the getters/setters for each...
  10. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    I think it is worth mentioning that the focus of this assignment is data structure and lists (CS 2 class).


    Yes, of course, that makes absolutely no sense. My intention was to search the...
  11. Replies
    25
    Views
    2,818

    Re: Searching ArrayList For Specific Object

    This is the method I've created under the class ContactArrayList:

    public void findContact(String contents){
    try{
    if(contents.equals("")){
    JOptionPane.showMessageDialog(null,...
  12. Replies
    25
    Views
    2,818

    Searching ArrayList For Specific Object

    I would like to search an array list that contains contact objects (name, address, email, phone number) which will then display the contents of that object on a JPanel (resultPanel in program). I am...
Results 1 to 12 of 12