Skip to content

Instantly share code, notes, and snippets.

@pureexe
Created August 8, 2017 06:11
Show Gist options
  • Select an option

  • Save pureexe/66e0ba94f1371d968a2e9dfb38e9301e to your computer and use it in GitHub Desktop.

Select an option

Save pureexe/66e0ba94f1371d968a2e9dfb38e9301e to your computer and use it in GitHub Desktop.
/**
* @author Pakkapon Phongthawee (07580028)
* @license GPLv3
*/
public class TestMyList {
public static void main(String[] args){
MyList<Integer> list = new MyList();
list.unshift(1).unshift(2).unshift(3);
list.shift();
list.push(1).push(2).push(3);
list.pop();
for(Object data: list.toArray()){
System.out.println(data);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment