I am trying to send a simple explicit intent to start a new activity , I previously used to code in Java & the syntax was pretty simple , I switched to kotlin recently & I have no idea what the :: or the .java extension at the end is doing ?
fun Run(view: View) {
// what the heck is :: ? why do i have a .java at the end ?
val intent:Intent= Intent(this, MainActivity2::class.java)
startActivity(intent)
}