Scala Queue clone() method with example
The clone() method is used to create a copy of the given queue. Method Definition: defclone(): Queue[A] Return Type: It return a new queue which is a copy of the given queue. Example #1: // Scala program of clone() // method // Import Queue import scala.collection.mutable._ // Creating object object