Scala Queue last() method with example
The last() method is utilized to return the last element of the queue. Method Definition: def last: A Return Type: It returns the last element of the queue. Example #1: // Scala program of last() // method // Import Queue import scala.collection.mutable._ // Creating object object GfG { // Main meth