Scala Char toUpper() method with example Improve Improve Like Article Like Save Share Report The toUpper() method is utilized find the uppercase of the stated character value. Method Definition: def toUpper: Char Return Type: It returns Char. Example: 1# // Scala program of toUpper() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying toUpper() method val result = 'a'.toUpper // Displays output println(result) } } Output: A Example: 2# // Scala program of toUpper() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying toUpper() method val result = 'b'.toUpper // Displays output println(result) } } Output: B Last Updated : 11 Nov, 2019 Like Article Save Article Previous Scala Short max() method with example Next Scala Char toTitleCase() method with example Share your thoughts in the comments Add Your Comment Please Login to comment...