String s = "12345"; IntLiteral lit1 = new IntLiteral(s); IntLiteral lit2 = 6789; ++lit1; // lit1=12346 ++lit2; // lit2=6790