+ 1

Difference

I need some insight in what the differnce is in these two if there is one: System.out.println(mathEx(2, 6)); OR int x = mathEx(2, 6); System.out.println(x);

4th Mar 2018, 7:08 PM
Alexander Dahlberg Karlsson
Alexander Dahlberg Karlsson - avatar
1 Answer
+ 1
The main difference between the two snippets lies in whether you directly pass the result of the function call to println() or store it in a variable first. Both approaches are valid, and the choice between them depends on your specific requirements and coding style preferences.
24th Apr 2024, 1:32 PM
`ᎎᔗᔗዚ
`ᎎᔗᔗዚ - avatar