I am new to android studio but have come from learning Java in eclipse through university. I've being following along with a simple tutorial that is coded in kotlin however I wanted to create it in Java (although from what I have learnt kotlin is less repetitive). I want to translate the code below from kotlin to java:
val rollButton = findViewByID<Button>(R.id.rollButton)
val resultsTextView= findViewByID<TextView>(R.id.resultsTextView)
val seekBar= findViewByID<seekBar>(R.id.seekBar)
rollButton.setOnClickListener {
val rand = Random().nextInt(seekBar.progress) + 1
resultsTextView.text = rand.toString()