Very simple question here.
Should I do this?
val re1 = txtRe1.text.toString().toIntOrNull() ?: 0
Or this?
val re1: Int = txtRe1.text.toString().toIntOrNull() ?: 0
Or for example:
val spinner: Spinner = findViewById(R.id.spinner)
or
val spinner = findViewById(R.id.spinner)
Thanks.
submitted by /u/HelloWorldzik
[link] [comments]