Search:

Type: Posts; User: gammaman

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    2,187

    Re: get element of ArrayList.

    I have tried what you suggested and I am still getting errors. Could this be b/c I am trying to do this on an actionlistener event.

    First, here is the constructor for the music recording which...
  2. Replies
    7
    Views
    2,187

    Re: get element of ArrayList.

    Sure. Simply "Yes" or "No". Those are the only two values the "owned" variable can contain. it gets trickey though. See where say myDataAccessor.getRecordings(category);

    That comes from...
  3. Replies
    7
    Views
    2,187

    Re: get element of ArrayList.

    MusicRecording is a class. I want to look at the value returned by getOwned();



    public class MusicRecording extends Recording {

    /**
    * Data members
    */
    private String artist;
  4. Replies
    7
    Views
    2,187

    get element of ArrayList.

    I have an arraylist as follows and I am trying to get an element so that it can be used in an if statement for evaluation. Is there a way to do this.



    ArrayList<MusicRecording> info =...
Results 1 to 4 of 4