#How do i create a new queue?
1 messages · Page 1 of 1 (latest)
what new keyword
SomeObject myObject = new SomeObject("someText");
what do i miss
check your constructor of Queue
it doesnt take any arguments
also you are missing the generics
where do i need to put them tho
it aint mine im just using it for school cannot change nothin in this
Queue<Type> queue = new Queue<>();
and replace Type with the one you actually want to store
yeah but you can change your usage of it
you currently give it an argument
but why?
well i need to create a queue and then make a clone out of it
idk more than that
that doesnt explain why you put 1 in the constructor parameter