Results 1 to 2 of 2
  1. #1
    Yakg is offline Member
    Join Date
    Dec 2010
    Posts
    59
    Rep Power
    0

    Default Need a reminder of

    Hi, could someone help me remember what the following line does?

    Java Code:
    _head = new WordNode(word, _head);
    Just forgot the logic of it and didn't know how to look it up..

    Thanks.

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

    Default

    That code creates a new WordNode instance, passing in word and a reference to whatever instance _head was previously holding to the constructor.

    What that constructor does is something you'll have to look at.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Reminder for [CODE] tags
    By OrangeDog in forum Suggestions & Feedback
    Replies: 19
    Last Post: 10-14-2009, 04:47 AM

Posting Permissions

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