Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: Generic list Example

Java: Generic list Example
{filelink=12224}

import java.util.List;
import java.util.ArrayList;
public class Ex_Generique
{
	public static void main (String[] args)
		{
         List liste_mot = new ArrayList();
		 liste_mot.add("December<span id="more-568"></span> ");
		 liste_mot.add("30");
		 liste_mot.add("2012");
		 liste_mot.add("Happy new year");
		 String str = liste_mot.get(0)+liste_mot.get(1);
		 assert str.contains("Year");
        System.out.println (str);
        }
}

Users who found this page were searching for:

  • generic list
  • java generics list example
  • java generic list example
  • generic list in java bufferedimage
  • javal gneric list get first element
  • java generic list in database
  • "generic list" import java
  • javagenericlist

No comments yet.

Leave a Comment