1. Public class Test { 2. Public static void add3 (Integer i ) { 3. Int val = i.intValue (): 4. Val + = 3; 5. I = new Integer (val); 6. } 7. 8. public static void main (String args [] ) { 9. Integer i = new Integer (0); 10. add3 (i); 11. System.out.printIn(i.intValue() ) ; 12. } 13. }
Show comments for this question (0) Add comments Link to this question