Skip to main content

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.

3 votes
1 answer
202 views

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 ...
0xff's user avatar
  • 849
3 votes
1 answer
172 views

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 (...
Jakob's user avatar
  • 2,789
23 votes
1 answer
2k views

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 ...
Kevin Cruijssen's user avatar
1 vote
0 answers
58 views

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 ...
Kaz Wolfe's user avatar
  • 371
12 votes
1 answer
224 views

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 ...
Olivier Grégoire's user avatar