-4

Is it possible to implement data structures using java? If yes can u help me

  • 3
    Do you know what is data structure? – Rosdi Kasim May 09 '11 at 10:17
  • Welcome to StackOverflow! The more effort you put into your question, the better both the quality and quantity of the answers you'll receive. You'll need to provide a lot more detail for your question to get answered in a reasonable way. What do you mean by "data structures," for instance? Non-class ones? Or stacks / binary trees / etc.? – T.J. Crowder May 09 '11 at 10:17
  • **Yes**. What kind of help do you want? – Ishtar May 09 '11 at 10:18
  • Related, but not a duplicate: http://stackoverflow.com/questions/36701/struct-like-objects-in-java – T.J. Crowder May 09 '11 at 10:22
  • 1
    I would try these http://www.google.co.uk/search?q=Data+Structures+in+Java+tutorial 2.6m results and http://www.google.co.uk/search?q=Data+Structures+in+Java+examples 6.7m results. – Peter Lawrey May 09 '11 at 10:26

2 Answers2

2

Java class is a data structure + supporting methods to access/modify the state and variables.

You should learn Java Object Oriented approach.

Also make sure you work through the Java Collections framework as all the most commonly used datastructures are already implemented for you.

Rein
  • 21
  • 1
0

Ohhhh boy... if you're asking this, I think you need to read up on what a data structure is.

Java has classes (data structure), enums (data structure), arrays (data structure), arraylist (data structure), queue (data structure), stack (data structure), linked list (data structure)...................... even javascript has data structure..

You can see here on what types of data structures are commonly used within this language

Java data structures (2nd edition)

Atticus
  • 6,585
  • 10
  • 35
  • 57