I’m relatively new to java (and programming) and am trying to understand the scope of the
items argument in the parseItems method.
parseItems(items, parser) is called inside fetchItems(), where ‘items’ is a local variable declared inside fetchItems(). Even though parseItems doesn’t return anything, it is able to modify the values stored in the local variable declared inside fetchItems() - this is something I’ve never seen before. Is this always the case in java?