055函数方法的调用机制

1616679930678

1616679967575

package com.atguigu.chapter05.fun

object FunYuanli {
  def main(args: Array[String]): Unit = {
    val n1 = 1
    val n2 = 3
    val res = sum(n1, n2)
    println("res=" + res)
  }

  def sum(n1: Int, n2: Int): Int = {
    return n1 + n2
  }

}

1616680246027


results matching ""

    No results matching ""