Advertisement
GameNCode

MoreThanOneDB Main

Feb 17th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. public class Main {
  2. public static void main(String[] args) {
  3. // Queue<Integer> queue = QueueUtility.createIntQueue();
  4. // Stack<Queue<Integer>> stack = new Stack<Queue<Integer>>();
  5. // stack.push(QueueUtility.duplicate(queue));
  6. // queue.remove();
  7. // stack.push(QueueUtility.duplicate(queue));
  8. // queue.remove();
  9. // stack.push(QueueUtility.duplicate(queue));
  10. // queue.remove();
  11. // stack.push(QueueUtility.duplicate(queue));
  12.  
  13. // Stack<Character> stackChar = new Stack<Character>();
  14. // Node<Character> nodeChar = new Node<Character>(null);
  15. // stackChar.push('s');
  16. // stackChar.push('b');
  17. // stackChar.push('d');
  18. // nodeChar.setValue('s');
  19. // nodeChar.setNext(new Node<Character>('b'));
  20. // nodeChar.getNext().setNext(new Node<Character>('d'));
  21. //// System.out.println(Functions.stacksToStackSums(stack).toString());
  22. // System.out.println(Functions.stackEqualsNode(nodeChar, stackChar));
  23. Stack<Integer> stack = StackFunctions.intStack();
  24. Stack<Integer> stack2 = StackFunctions.intStack();
  25. Stack<Integer> stack3 = StackFunctions.intStack();
  26. Node<Stack<Integer>> listStack = new Node<Stack<Integer>>(stack);
  27. Node<Stack<Integer>> dupli = listStack;
  28. listStack.setNext(new Node<Stack<Integer>>(stack2));
  29. listStack = listStack.getNext();
  30. listStack.setNext(new Node<Stack<Integer>>(stack3));
  31. System.out.println(Functions.sortedComplex(dupli).toString());
  32.  
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement