でネストされたif文は、より機能的な作り:誰かが提案を作ることができれば誰もが声明より機能場合は、次のようにする方法を知っているかどう思っScalaの
はval value1 = 8
val value2 = 10
if(val1 > val2){
println("\n" + stock1 + " has the highest current value")
}else if(val1 < val2){
println("\n" + stock2 + " has the highest current value")
}else if(val1 == val2)){
println("\nThe current value for " + stock1 + " is equal the current value for " + stock2)
}
私は非常に感謝されます。
おかげ
「より機能的」とは何ですか? – maasg