So, I'm watching Begging Java on YouTube and the presenter shares the following code. I'm not understanding the line: Integer result = cal.add(10,30); Not clear on how there a need for two assignment statements for 'result' If 10 and 30 are passed into the add() Method isn't the result returned from this Method and already stored in 'result' so why the need to have the assignment of it with Integer result = cal.add(10,30)? Can anyone explain the flow to me? Thanks.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad: