How to declare int variable in Scala

1 Answer

0 votes
object Main {
    def main(args: Array[String]): Unit = {
        val x: Int = 25
        
        println(x) 
    }
}



  
/*
run:
   
25
   
*/

 



answered Oct 13, 2021 by avibootz

Related questions

...