List
ArrayList,LinkedList,Vector and Stack are the classes which implements List interface.

Below is the detail explanation of the List implemented classes

forex cfd bonus ArrayList:

http://acuoreaperto.com/?minuta=%D8%AD%D8%B3%D8%A7%D8%A8-%D8%A7%D9%84%D9%85%D8%A7%D8%B1%D8%AC%D9%86&0cb=63 حساب المارجن Contructors:

  1. ArrayList list=new ArrayList()
  2. Creates an empty ArrayList object with default initial capacity 10.Once an ArrayList reaches it’s maximum capacity then a new ArrayList object will be created with new capacity
    new capacity=(currentCapacity*3/2)+1

  3. ArrayList list=new ArrayList(int initialCapacity)
  4. Creates an empty ArrayList object with the specified initial capacity.

  5. ArrayList list=new ArrayList(Collection collection)
  6. This is for inter conversion between collection objects.

http://snelnaarschiphol.nl/?fantomas=orari-migliori-trading-forex&f4e=2d orari migliori trading forex ArrayList Example:

 
package com.java2learn.collections;
import java.util.ArrayList;
public class ArrayListDemo {

	public static void main(String[] args) {
		ArrayList list=new ArrayList();
		list.add("A");
		list.add(new Integer(100));
		list.add(null);
		list.add("B");
		System.out.println(list);
		list.remove(1);
		list.set(2,"Z");
		System.out.println(list);
	}
}

http://cliffhangercafe.co.uk/?istanbul=segnali-forex-italiani&74c=9f segnali forex italiani output:
[A, 100, null, B]
[A, null, Z]

تعلم تجارة الفوركس Note:Every Collection implemented class by default implements Serializable and Cloneable interfaces.
you can refer to this ArrayList class API

http://allstar-wrestling.com/?forexfor=best-forex-trading-software-mac best forex trading software mac LinkedList:

شركة شراء الاسهم Contructors:

  1. LinkedList list=new LinkedList()
  2. Creates an empty LinkedList

  3. LinkedList list=new LinkedList (Collection collection)
  4. This is for inter conversion between collection objects.

http://quiltshopgal.com/?lester=%D8%A7%D9%81%D8%B6%D9%84-%D9%85%D8%AA%D8%AF%D8%A7%D9%88%D9%84-%D9%81%D9%8A-%D8%A7%D9%84%D9%81%D9%88%D8%B1%D9%83%D8%B3&03f=f7 افضل متداول في الفوركس LinkedList Example:

 
package com.java2learn.collections;
import java.util.LinkedList;

public class LinkedListDemo {

	public static void main(String[] args) {
		LinkedList linkedList=new LinkedList();
		linkedList.add(".NET");
		linkedList.add(new Integer(999));
		linkedList.add(null);
		linkedList.add(".NET");
		linkedList.set(0,"IT");
		linkedList.add(0,"JAVA");
		linkedList.removeLast();
		linkedList.addFirst("SOFTWARE");
		System.out.println(linkedList);
	}
}

http://www.homelesshounds.org.uk/?mikstyra=%D9%84%D9%81%D9%88%D8%B1%D9%83%D8%B3&5c5=c6 لفوركس output:
[SOFTWARE, JAVA, IT, 999, null]

you can refer to this LinkedList class API

http://www.riosmartin.com/?bilozir=%D8%B7%D8%B1%D9%8A%D9%82%D8%A9-%D8%A7%D9%84%D8%A7%D8%B3%D8%AA%D8%AB%D9%85%D8%A7%D8%B1-%D9%81%D9%8A-%D8%A7%D9%84%D8%B0%D9%87%D8%A8-%D8%B9%D9%86-%D8%B7%D8%B1%D9%8A%D9%82-%D8%A7%D9%84%D9%86%D8%AA&e84=3c طريقة الاستثمار في الذهب عن طريق النت Vector:

http://glasgowpdc.co.uk/?rafinad=%D8%A7%D9%84%D8%A8%D9%86%D9%83-%D8%A7%D9%84%D8%A7%D9%87%D9%84%D9%8A-%D9%83%D9%8A%D9%81-%D8%A7%D8%B3%D8%AD%D8%A8-%D9%85%D8%A8%D9%84%D8%BA-%D8%A8%D9%8A%D8%B9-%D8%A7%D9%84%D8%A7%D8%B3%D9%87%D9%85&153=8f البنك الاهلي كيف اسحب مبلغ بيع الاسهم Contructors:

  1. Vector vector=new Vector()
  2. Creates an empty Vector object with default initial capacity 10.When ever vector reaches it’s maximum capacity a new vector object will be created with double capacity.

  3. Vector vector=new Vector (int initialCapacity)
  4. Vector vector=new Vector (int initialCapacity,int incrementalCapacity)
  5. Vector vector =new Vector (Collection collection)

Vector Example:

package com.java2learn.collections;
import java.util.Vector;

public class VectorDemo {

	public static void main(String[] args) {
		Vector vector=new Vector();
		System.out.println("capacity:"+vector.capacity());
		for(int item=1;item<=10;item++){
			vector.addElement(item);
		}
		System.out.println("capacity:"+vector.capacity());
		vector.addElement("JAVA");
		System.out.println("capacity:"+vector.capacity());
		System.out.println(vector);
	}
}

output:
capacity:10
capacity:10
capacity:20
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, JAVA]

Difference Between Vector and ArrayList

Vector ArrayList
All methods are synchronized. No method is synchronized.
Vector object is thread safe. ArrayList object is not thread safe.
Performance is low. Performance is high.
Introduced in 1.0v and hence it is a legacy class. Introduced in 1.2v and it is not a legacy class.

Note:ArrayList is by default non synchronized but by using Collections class method we can get synchronized version of ArrayList.
public static List synchronizedList(List list)
Similarly, We can get the synchronized versions of Set and Map objects by using the following Collections class methods.
public static Set synchronizedList(Set set)
public static Map synchronizedList(Map map)

you can refer to this Vector class API

Stack:

  • Stack is the child class of Vector and contains only one constructor.
  • Stack stack=new Stack();

  • If the specified object present in the Stack it returns it’s offset from the top of the Stack otherwise it returns -1

Stack Example:

package com.java2learn.collections;
import java.util.Stack;

public class StackDemo {

	public static void main(String[] args) {
		Stack stack=new Stack();
		stack.push("JAVA");
		stack.push(".NET");
		stack.push("PHP");
		System.out.println(stack);
		System.out.println(stack.search("JAVA"));
		System.out.println(stack.search("C++"));
	}
}

Output:
[JAVA, .NET, PHP]
3
-1
You can refer to this Stack class API