I am wondering how to convert an edittext input to an int, I have the user input a number, it than divides it by 8.
MainActivity.java
@SuppressWarnin
In Kotlin, you can do this.
val editText1 = findViewById(R.id.editText) val intNum = editText1.text.toString().toInt()