Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27
  1. #21
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

  2. #22
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    United States
    Posts
    2,936
    Rep Power
    4

    Default Re: Create a duplicate.

    There are two types of List. One is a class which is not generic. The other is the interface List. You want the interface.

    import java.util.List;

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  3. #23
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Re: Create a duplicate.

    Fixed,gonna test it out now. Thanks.

  4. #24
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Re: Create a duplicate.

    Okay,so now i need to know how to actually USE multiple instances of the class. The constructor itself is empty,because it's unused,i only use the tick and rendering methods inside it. I tried putting those into the Constructor itself,but that didn't work. Is there a way I can just use the render and tick methods,or do i need to add the tick and render into the constructor? (It's actually just the graphics that's a problem. It accepts a Graphics g object,but i can't get one into the constructor without it giving me errors in one way or another.)

    (The tick and render are called by a loop in the main class directly. (Loop-> Component.render-> Bee.render))
    Last edited by RiokuTheSlayer; 09-17-2013 at 08:44 PM.

  5. #25
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    United States
    Posts
    2,936
    Rep Power
    4

    Default Re: Create a duplicate.

    Quote Originally Posted by RiokuTheSlayer View Post
    Okay,so now i need to know how to actually USE multiple instances of the class.
    I have no idea. However, that is something you should have already figured out before asking for help on how to create multiple instances.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  6. #26
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Re: Create a duplicate.

    Ok,i'll look somewhere else then Thanks,though.

  7. #27
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,083
    Rep Power
    4

    Default Re: Create a duplicate.

    A book on Java is a good place to look. Just don't blame the book when you misunderstand something.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 06-03-2012, 07:20 PM
  2. Duplicate Birthday's program
    By tronez in forum New To Java
    Replies: 2
    Last Post: 12-05-2011, 03:29 AM
  3. How do you duplicate a window?
    By Baldie in forum AWT / Swing
    Replies: 6
    Last Post: 06-10-2011, 07:19 AM
  4. Duplicate table
    By anilkumar_vist in forum New To Java
    Replies: 3
    Last Post: 01-09-2010, 11:17 AM
  5. Duplicate XML decleration
    By gyl2009 in forum XML
    Replies: 0
    Last Post: 03-11-2009, 05:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •