Skip to content

Instantly share code, notes, and snippets.

@dsdstudio
Created February 20, 2012 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsdstudio/1867246 to your computer and use it in GitHub Desktop.
Save dsdstudio/1867246 to your computer and use it in GitHub Desktop.
Java Generic argument
import java.util.List;
import java.util.Collections;
public class GenericArgumentTest {
List<String> tokenList;
public void setTokenList(List<String> tokenList){
this.tokenList = tokenList;
}
public static void main(String[] args){
GenericArgumentTest obj = new GenericArgumentTest();
obj.setTokenList(Collections.<String> emptyList());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment