Skip to content

Instantly share code, notes, and snippets.

View pablogrisafi1975's full-sized avatar

Pablo Grisafi pablogrisafi1975

View GitHub Profile
@pablogrisafi1975
pablogrisafi1975 / Main.java
Created November 4, 2017 22:06
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;