Kotlin Program:

- To convert string into UPPERCASE

Example:

User Input: hello World

Output: HELLO WORLD

import java.util.Scanner
fun main(args: Array) {
    val s1:String
    val userInput = Scanner(System.`in`)
    print("Enter your string : ")
    s1 = userInput.nextLine()
    println("Your UPPERCASE String : ${s1.toUpperCase()}")
}

Output:

  Enter your string : Have good day
  Your UPPERCASE string : HAVE GOOD DAY
Program
basic

You should know first :

Lowercase alphabets : Starts from a (97) to z (122)

Uppercase alphabets : Starts from A (65) to z (90)

You can use predefined function toUpperCase()

s1.toUpperCase()

To convert them to, all lowercase
s1.toLowerCase()
Concept

Coming Soon !

Quick
Tutorial

Quote

A good decision is based on knowledge and not on numbers.