RosettaCodeData/Task/Queue-Usage/Objeck/queue-usage.objeck

15 lines
263 B
Plaintext

class Test {
function : Main(args : String[]) ~ Nil {
q := Struct.IntQueue->New();
q->Add(1);
q->Add(2);
q->Add(3);
q->Remove()->PrintLine();
q->Remove()->PrintLine();
q->Remove()->PrintLine();
q->IsEmpty()->PrintLine();
}
}