Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: hi guys, i needed to help to understanding this code in data structure ( node )

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hi guys, i needed to help to understanding this code in data structure ( node )

    i needed to help to understanding this code in data structure ( node ) plz
     public class Node <E>{
     
        private E Data;
        private Node Next, prev;
     
        public Node() {
        }
     
        public Node(E Data, Node Next) {
            this.Data = Data;
            this.Next = Next;
        }
     
        public Node(E Data, Node Next, Node prev) {
            this.Data = Data;
            this.Next = Next;
            this.prev = prev;
        }
     
        public E getData() {
            return Data;
        }
     
        public void setData(E Data) {
            this.Data = Data;
        }
     
        public Node getNext() {
            return Next;
        }
     
        public void setNext(Node Next) {
            this.Next = Next;
        }
     
        public Node getPrev() {
            return prev;
        }
     
        public void setPrev(Node prev) {
            this.prev = prev;
        }
    }


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,607
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: hi guys, i needed to help to understanding this code in data structure ( node )

    What are you confused about?

    Please see the link in my signature on asking questions the smart way, then try again.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: hi guys, i needed to help to understanding this code in data structure ( node )

    i want any person to explain this code to me

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,607
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: hi guys, i needed to help to understanding this code in data structure ( node )

    What are you confused about?

    Please see the link in my signature on asking questions the smart way, then try again.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,321
    Thanks
    56
    Thanked 2,374 Times in 2,345 Posts

    Default Re: hi guys, i needed to help to understanding this code in data structure ( node )

    Please edit your post and wrap your code with code tags:
    [code=java]
    YOUR CODE HERE
    [/code]
    to get highlighting and preserve formatting.

    --- Update ---

    Are you confused about the <> part? See the tutorial about Generics:
    Lesson: Generics (Updated) (The Java™ Tutorials > Learning the Java Language)
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Re: Data Structure
    By jim17 in forum Object Oriented Programming
    Replies: 3
    Last Post: November 16th, 2011, 11:14 PM
  2. Data Structure
    By Faha in forum Object Oriented Programming
    Replies: 9
    Last Post: November 10th, 2011, 01:35 AM
  3. Replies: 2
    Last Post: June 15th, 2011, 04:49 PM
  4. Replies: 1
    Last Post: June 11th, 2011, 06:39 AM
  5. .xls data structure
    By helloworld922 in forum JDBC & Databases
    Replies: 3
    Last Post: August 20th, 2009, 08:12 PM

Tags for this Thread