Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    The postion of that line of code should not cause any problems.
    All three lines reference the method's argument and are not related.
  2. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    You write it because the compiler wants one defined. See the error message.
  3. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    Are you asking how to write the code to define a constructor to the Art class?

    See the tutorial:
    Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language >...
  4. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    The first code you posted is not a constructor.
    Try adding the constructor to the Art class.
  5. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    I can not see it. Can you copy and paste here the code you are talking about?

    Read this about how to create a class and use constructors:
    Providing Constructors for Your Classes (The Java™...
  6. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    I dont see that You have not posted the new code with the new Art class constructor.
  7. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    Post the code om line 15 and the error message for it.
  8. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    Did you try adding a constructor to the Art class that "throws" an exception as the error message suggested?
  9. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    Did you try adding a constructor to the Art class that "throws" an exception as the error message suggested?
  10. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    Edit your post and wrap your code with
    <YOUR CODE HERE> to get
    highlighting

    The error message says:

    Can you compile the code with a compiler that generates compile time messages? Try using...
  11. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    Can't guess until you post the error message and the code.
  12. Thread: TF2 Demake

    by Norm
    Replies
    24
    Views
    2,306

    Re: TF2 Demake

    Please post the full text of the error message and the lines of code that cause it.
Results 1 to 12 of 12