I am writing a Parser for Infix Notation.
In the if-statement I declare the variable newchild. Otherwise I want it to throw an exception. But when I am out of the scope the Comp
int value = = -1;
Leaf res = null;
if(Character.isDigit(tokenList.get(i).charAt(1))){
value =Integer.parseInt(tokenList.get(i));
res = new Leaf(value);
}
and check out of the if what values are stored in the variables value and res