I'm stuck on a probably simple thing, but I just can't figure it out. So this is the code:
List<BigInteger> list = new ArrayList<BigInteger>();
for (int i = 1; i <= 12; i++) {
list.add(new BigInteger("i"));
}
I get the following Exception:
Exception in thread "main"
java.lang.NumberFormatException
: For input string:"i"
I don't understand it, i is an integer between 1-12 and it should be convertible to a BigInteger.