Results 1 to 3 of 3
  1. #1
    Accendo is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Default How to create an array of MY class

    Hey there Java Forums I don't know how to create an Array of my class Waypoints...

    The format to build a Waypoint is (int,int)

    Java Code:
    for (int i = j; i<j+2; i++)
    {
    	Waypoint [NOT SURE WHAT TO PUT HERE] = new Waypoint(Way.get(i),Way.get(i+1));
    }

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,071
    Rep Power
    10

    Default

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Accendo is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

Similar Threads

  1. Create a Get/set for an array
    By mechdesignron in forum New To Java
    Replies: 4
    Last Post: 05-04-2010, 09:39 PM
  2. create a 2d char array from a 1D string array
    By jschmall12 in forum New To Java
    Replies: 1
    Last Post: 04-27-2010, 09:01 PM
  3. how to create static array in class
    By itaipee in forum New To Java
    Replies: 1
    Last Post: 04-19-2009, 03:33 PM
  4. Replies: 8
    Last Post: 03-21-2009, 10:34 AM
  5. How to create main class link to another two class?
    By pearllymary78 in forum New To Java
    Replies: 6
    Last Post: 07-16-2008, 11:02 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
  •