Linked List using java

Linked list  is implementation of the List interface. LinkedList class provides uniformly named methods to get, remove and insert an element at the beginning and end of the list

Hierarchies of LinkedList follows as :

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.AbstractSequentialList
              extended by java.util.LinkedList
I have list down Linked list methods which are provided as LinkList J2SE6 API documentation
so one can get basic idea what are the methods available and there is simple java program provided
at bottom of current  linkedlist post so you can  play with other methods.

Stack using java

A Stack is like a bucket in which you can put elements one-by-one in sequence and retrieve elements from the bucket according to the sequence of the last entered element. Stack is a collection of data and follows the LIFO (Last in, first out) rule that mean you can insert the elements one-by-one in sequence and the last inserted element can be retrieved at once from the bucket. Elements are inserted and retrieved to/from the stack through the push() and pop() method.

Using Following Stack Java Program , You will be able to do as :
  1. Add elements into stack
  2. Read all elements from Stack
  3. Remove elements from Stack
  4. Get element at specific index in Stack
  5. Check capacity of Stack
  6. Check that Wether Stack contains specific element or not
  7. Clear the Stack
  8. Check that Stack is empty or not

Vector Example using java

The Vector class implements a growable array of objects. Like an array, it contains components that can be accessed using an integer index. However, the size of a Vector can grow or shrink as needed to accommodate adding and removing items after the Vector has been created.

Each vector tries to optimize storage management by maintaining a capacity and a capacityIncrement. The capacity is always at least as large as the vector size; it is usually larger because as components are added to the vector, the vector's storage increases in chunks the size of capacityIncrement.

Display System Properties using java

The System class contains several useful class fields and methods. It cannot be instantiated.

some of facilities provided by System class are standard input, standard output, error output streams,access to externally defined properties and environment variables etc

System Class provided method called getProperties() to get current system properties.

Properties getProperties()- Determines the current system properties.Please note that return types of this method is Properties. In order to display retirved properties, you need to iterate using example shown at below