Questions tagged [java]
For questions about the usage of the Java programming language on the main site. Do not post questions asking for help with Java on meta using this tag.
5 questions
3 votes
1 answer
202 views
Can Java lambdas reuse their named arguments to remove type declarations?
From what I have seen so far the usual way of scoring in java is by using lambda expressions. I often see Try it online used for it. My actual question comes now: Can you reuse the name of a named ...
3 votes
1 answer
172 views
Are multi-method solutions allowed in Java?
I recently joined this community as a Java golfer, and I haven't been able to find a definitive consensus on acceptable solution formats for Java. From what I gather, the following are allowed (...
23 votes
1 answer
2k views
Are we allowed to use empty input we won't use when no input is asked (regarding functions)?
Let's say a code-golf challenge is asking for a program without arguments or function without parameters. Are we allowed to take an empty parameter instead we won't use anywhere? As example: In Java ...
1 vote
0 answers
58 views
What's the Java policy with REPL existing? [duplicate]
An extension of When do I have to include things like Java's public static void main. Unless you've (probably) been living under a rock, you (probably) know that Java 9 is (probably) going to ...
12 votes
1 answer
224 views
Are transformed versions of Java's types acceptable as function input?
In Java, all "basic" input types are immutable with very few tools at our disposal. Some other class that still represent the same value exist and allow us to do more. In trying to golf Java code, I ...