Created
August 8, 2017 06:11
-
-
Save pureexe/66e0ba94f1371d968a2e9dfb38e9301e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @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