1public class App {
2 public static void main(String[] args)
3 {
4 int x = 3;
5 int answer = addFive(x);
6 System.out.println("answer is = " + answer);
7 }
8
9 private static int addFive(int px)
10 {
11 px += 5;
12 return px;
13 }
14}
15
1public class App {
2 public static void main(String[] args)
3 {
4 int x=3;
5 int answer = addFive(x);
6 System.out.println("answer is = " + answer);
7 }
8
9 private static int addFive(int px)
10 {
11 px += 5;
12 return px;
13 }
14}
15
1public class App {
2 public static void main(String[] args)
3 {
4 int x = 3;
5 int answer = addFive(x);
6 System.out.println("x = " + answer);
7 }
8
9 private static int addFive(int px)
10 {
11 x += 5;
12 return px;
13 }
14}
15