package com.mengyao.scala.function

/**
 * Scala函数的声明和使用  //返回值为Int类型的函数中调用函数
  def sum3(a: Int, b: Int): Int = {
    val debug = sum1(a, b)
    val sum = sum2(a, b)
    if (sum.>(0))
      sum
    else
      0
  }
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2021-07-06
  • 2021-09-18
  • 2022-01-13
  • 2021-12-28
猜你喜欢
  • 2021-08-12
  • 2021-10-28
  • 2022-02-02
  • 2022-12-23
  • 2021-04-01
  • 2022-01-22
相关资源
相似解决方案