var myInt = 10
println(myInt.javaClass.name)
int

var myLong = 10L
println(myLong.javaClass.name)
long

var myFloat: Float = 100
println(myFloat.javaClass.name)
var myFloat1 = 100F
println(myFloat1.javaClass.name)
error: the integer literal does not conform to the expected type Float
var myFloat: Float = 100
                     ^

var myFloat2 = 100F
println(myFloat2.javaClass.name)
float

var myHex = 0x0F
println(myHex.javaClass.name)
val myBinary = 0b01
println(myBinary.javaClass.name)
intint

myInt.toLong()
10

var myChar = 'A'
val myString = "My String"
var escapeChar = "a New Line \n 123"
println(escapeChar)
a New Line 
 123

val rawString = "Hello" +
        "This is second line" +
        "a third line"
println(rawString)
HelloThis is second linea third line

val years = 10
val message = "a decade is $years years"
println(message)
a decade is 10 years

val anotherMessage = "Length of name is ${message.length}"
println(anotherMessage)
Length of name is 20

var answer = 0
answer = 42
println(answer)
42

listOf(1,2,3,4)
[1, 2, 3, 4]

val languages = mutableListOf("Java")
languages.add("Kotlin")
println(languages)
[Java, Kotlin]

val language2 = listOf(1, 2, 3)
language2.add(4)
error: unresolved reference: add
language2.add(4)
          ^

const val CopyrightYear = 2017
error: const 'val' are only allowed on top level or in objects
const val CopyrightYear = 2017
^