This challenge is related to the Java language. Note that challenges that require the answers to be in a specific language are generally discouraged.
32
votes
18answers
5k views
Tips for golfing in Java
Are there any useful shortcuts that can be used in Java?
As shown below, import already adds at least 17 characters to a program.
import java.io.*;
I understand that the simple solution would ...
190
votes
52answers
27k views
Survival Game - Create Your Wolf
The Board
The Board is a two dimensional array of cells. Cells are populated by Animals. Every day, all Animals on the Board simultaneously make one move. If two or more Animals move to the same ...
89
votes
45answers
9k views
Survival Game - AlienWar
AlienWar
This game takes place in a very crowded planet where aliens are the superior race. Your task is to create your own alien and beat all other.
The Board
It is a 2 dimensional board.
The ...
15
votes
9answers
1k views
Chess Tournament
This is a chess-KOTH with simplified rules (because chess itself is already complicated, playing it via a simple program doesn't make it easier). At the moment it is limited to java (version 8), but ...
15
votes
9answers
597 views
Asymmetrical KOTH: Catch the Cat (Catcher Thread)
Asymmetrical KOTH: Catch the Cat
UPDATE:
The gist-files are updated (including new submisisons) as the Controller.java did not catch Exceptions (only errors). It does now catch errors and exceptions ...
13
votes
9answers
568 views
Asymmetrical KOTH: Catch the Cat (Cat Thread)
Asymmetrical KOTH: Catch the Cat
UPDATE:
The gist-files are updated (including new submisisons) as the Controller.java did not catch Exceptions (only errors). It does now catch errors and exceptions ...
13
votes
3answers
1k views
Write a java code to detect the JVM version
The objective is to write java code that detects the JVM version relying in compatibility changes, side effects, bugs and/or undefined behavior that works in a way in one version and another way in ...