TheBulgarianWolf

Kotlin Expressions

Mar 13th, 2021
531
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun main(args: Array<String>) {
  2.  
  3.     val a = 12
  4.     val b = 13
  5.     val max: Int
  6.  
  7.     max = if (a > b) a else b
  8.     println("$max")
  9.  
  10.     val flag = true
  11.  
  12.     if (flag == true) {      // start of if block
  13.         print("Hey ")
  14.         print("jude!")
  15.     }
  16. }
RAW Paste Data