Skip to content

Instantly share code, notes, and snippets.

@rik-degraaff
rik-degraaff / Main.java
Last active November 5, 2017 13:28 — forked from pablogrisafi1975/Main.java
Lists with compile time check over length
import java.util.Arrays;
import java.util.List;
public class Main {
static abstract class Num{
public abstract int n();
static class N0 extends N1{
@Override
public int n() {
return 0;