1 package p; 2 3 public class DifferentArgs1_in { createDifferentArgs1_in(int N)4 public static DifferentArgs1_in createDifferentArgs1_in(int N) { 5 return new DifferentArgs1_in(N); 6 } 7 private int fN; DifferentArgs1_in(int N)8 public DifferentArgs1_in(int N) { 9 fN= N; 10 } get()11 public int get() { 12 return fN; 13 } foo(String[] args)14 public void foo(String[] args) { 15 DifferentArgs1_in da= createDifferentArgs1_in(16); 16 17 System.out.println("Value = " + da.get()); 18 } bar(String[] args)19 public void bar(String[] args) { 20 DifferentArgs1_in da= createDifferentArgs1_in(24); 21 22 System.out.println("Value = " + da.get()); 23 } 24 } 25