Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. if(pile.peek()<sec_pile.peek()){
  2.                 sec_pile.push(pile.pop());
  3.                 contador++;
  4.                 System.out.println("1->2");
  5.             }else if(pile.peek()<third_pile.peek()){
  6.                 third_pile.push(pile.pop());
  7.                 contador++;
  8.                 System.out.println("1->3");
  9.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement