How the value is 32 but I cant seem to get there , I am stuck I
Fantastic news! We've Found the answer you've been seeking!
Question:
How the value is 32 but I cant seem to get there , I am stuck I need help.
public static void main(String[] args) {
int val1 = 2;
int val2 = val1 + 5;
int val3 = val1 * val2;
int returnValue = method1(val3);
val3 = returnValue - val2;
val3 = method1(val3);
val3 = val1 + val3;
}
public static int method1(int num1) {
int num2 = num1 - 4;
num2 = num2 + num1;
return(num2);
}
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date: