Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    Reading the API doc for the classes you are using can make writing code easier.
    See post #26.
  2. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    Please post the code you are having trouble with and describe what the problem is.
  3. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    For int to String see the String class's value of method or the Integer class's toString method.
  4. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    What variable is the ArrayList that you are trying to get data from? Using []s is for arrays.
    An ArrayList is a class which means you need to use its methods to get to its contents.
  5. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    ArrayLists would work for most places that you would use an array.
  6. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    What does "registered" mean? How does that relate to the values of the two variables?

    There are many ways that can happen.
    One is that all the references in the list point to the same object. ...
  7. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    You need to study how to call a method and pass it an argument. What you have coded is NOT a method call. See the tutorial:
    Passing Information to a Method or a Constructor (The Java™ Tutorials >...
  8. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    Can you post the definitional statement(s) for GroundTileATop?
    I'm not sure what you mean when you say it is the object. The statement with the error is coded like a method call. Method calls use...
  9. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    The compiler can not find a definition for the GroundTileATop() method.
    Check the spelling and the arguments.
    Is it a method that returns an object that extends the Component class?
  10. Thread: Components?

    by Norm
    Replies
    31
    Views
    2,998

    Re: Components?

    Please post the full text of the error message and the code that is causing it.
    BTW The class is named: Component not component.
Results 1 to 10 of 10