作者:旧眸M_557 | 来源:互联网 | 2023-10-13 10:12
InJava,todeclareaconstant,youdosomethinglike:在Java中,要声明常量,您可以执行以下操作:classHello{publ
In Java, to declare a constant, you do something like:
在Java中,要声明常量,您可以执行以下操作:
class Hello {
public static final int MAX_LEN = 20;
}
What is the equivalent in Kotlin?
Kotlin的等价物是什么?
3 个解决方案