treegus
treegus
JCHJava Community | Help. Code. Learn.
Created by nib on 5/21/2025 in #java-help
how do i de define keyword
just use
public static final String ts = "this"
public static final String ts = "this"
I can't know perfectly. I think making "this"(String) to "ts"(String) maybe cant
17 replies
JCHJava Community | Help. Code. Learn.
Created by nib on 5/21/2025 in #java-help
how do i de define keyword
It is lambda
17 replies
JCHJava Community | Help. Code. Learn.
Created by nib on 5/21/2025 in #java-help
how do i de define keyword
well, There is lambda method. I can't know you want this.
public static final Function<String, String> GREET = name -> "Hello, " + name + "!";
public static final Function<String, String> GREET = name -> "Hello, " + name + "!";
17 replies
JCHJava Community | Help. Code. Learn.
Created by nib on 5/21/2025 in #java-help
how do i de define keyword
but you can't define methods.
17 replies
JCHJava Community | Help. Code. Learn.
Created by nib on 5/21/2025 in #java-help
how do i de define keyword
well, you can do like that just use
public static final int MAX_NUMBER = 5
public static final int MAX_NUMBER = 5
17 replies