Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class main {
- public static void main(String[] args) {
- linkedlist l = new linkedlist();
- for(int i = 0; i < 10; ++i){
- object y = new object(i);
- l.add(y);
- }
- node cur = l.head;
- while(cur.next != null){
- System.out.println(cur.polynomial.getX());
- cur = cur.next;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement