特牛网址导航

scala_if条件表达式、while循环、for循环表达式-CSDN博客

网友收藏
文章浏览阅读301次。1、if条件表达式package com.scala.test.Testobject IfTest02 { def main(args: Array[String]): Unit = { val a:Int=60 //这种情况和java语言一样 if(a>60){ println("大于60") }else{ printl...