
上QQ阅读APP看书,第一时间看更新
Types
The type of a variable, with respect to its value space, is the set of possible values that the variable can possess. In many cases, it is useful to be able to explicitly specify the type of value you want to be held by a variable being declared. This can be done using a data type.
Some important types in Kotlin are:
- Int
- Float
- Double
- Boolean
- String
- Char
- Array