TheBulgarianWolf

Kotlin Expressions

Mar 13th, 2021
741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.26 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment