Scala Char min() method with example Last Updated : 03 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The min() method is utilized to find the minimum of the two specified characters. Method Definition: def min(that: Char): Char Return Type: It returns the character with the minimum value. Example: 1# Scala // Scala program of min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying min() method val result = ('F').min('A') // Displays output println(result) } } Output: A Example: 2# Scala // Scala program of min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying min() method val result = ('a').min('A') // Displays output println(result) } } Output: A Comment More infoAdvertise with us Next Article Scala Char min() method with example N nidhi1352singh Follow Improve Article Tags : Scala Scala Scala-Method Similar Reads Scala Int min() method with example The min() method is utilized to return the minimum value of the two specified int numbers. Method Definition: (First_Number).min(Second_Number)Return Type: It returns true the minimum value of the two specified int numbers. Example 1: Scala // Scala program of Int min() // method // Creating object 1 min read Scala Set min() method with example The max() method is utilized to find the smallest element of all the elements in the stated list. Method Definition: def min: A Return Type: It returns the smallest of all the elements in the stated list. Example #1: Scala // Scala program of min() // method // Creating object object GfG { // Main m 1 min read Scala Map min() method with example The min() method is utilized to find the smallest element of the map. Method Definition: def min: (A, B) Return Type: It returns the smallest element of the map. Example #1: Scala // Scala program of min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Cre 1 min read Scala List min() method with example The min() method is utilized to find the smallest element of all the elements in the stated list. Method Definition: def min[B >: A](implicit ord: math.Ordering[B]): A Return Type: It returns the smallest of all the elements in the stated list. Example #1: Scala // Scala program of min() // metho 1 min read Scala Short min() method with example The min() method is utilized to find the minimum of the two specified Short types. Method Definition: def min(that: Short): Short Return Type: It returns the number of type Short with the minimum value. Example: 1# Scala // Scala program of min() // method // Creating object object GfG { // Main met 1 min read Like