Euler Java Implementation

Javai Ja-Cov Java-lint CodeQL

All problems are solved in Java 8+.

Organization

All Java files share a common prefix with their problem number. All shared functions are defined in the include folder.

Usage

This folder contains a Makefile with several recipes, most of which are aliases to dotnet commands. This facilitates the root Makefile dispatching tasks to each language, many of which have more complex build or test processes.

test

Alias for maven test -Dtest.single.

test_auto

Note

WIP

Runs tests in parallel with one less thread than you have CPUs. Alias for maven test-T 1C.

test_%

Note

WIP

Runs tests in parallel with the specified number of threads. Alias for maven test -T $*.

clean

Alias for maven clean, with some degree of fallback if maven is not installed.

lint

Alias for maven formatter:format.

Test Infrastructure

public interface IEuler
Object answer()
Returns:

The answer to a Project Euler problem

public class EulerTest
void eulerTestProblem()

A JUnit theory that, for each registered solution, will test against the known answer and a one minute time limit.

Library Code

Problems Solved