Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun main(args: Array<String>) {
- val hello = "hello"
- //value can not be reinitialized because it is like final variable in java
- hello = "dlkjf" // it will produce an compile time error
- println("$hello")
- }
- ###output###
- hello
Add Comment
Please, Sign In to add comment