Advertisement
Lusien_Lashans

Проверка Очереди

Jan 11th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String args[]) {
  3.         QueueY a = new QueueY();
  4.         for (int i = 0; i<10; i++){
  5.             a.Enqueue(i);
  6.         }
  7.         System.out.println(a.size());
  8.         for (int i = 0; i<10; i++){
  9.             System.out.println(a.Dequeue());
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement