Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1.  
  2. public class main {
  3.  
  4.  
  5. public static void main(String[] args) {
  6. linkedlist l = new linkedlist();
  7. for(int i = 0; i < 10; ++i){
  8. object y = new object(i);
  9. l.add(y);
  10. }
  11. node cur = l.head;
  12. while(cur.next != null){
  13. System.out.println(cur.polynomial.getX());
  14. cur = cur.next;
  15. }
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement