Advertisement
redandwhite

Untitled

Jan 11th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1. public static void main(String[] args) {
  2.     int number = 5;
  3.    
  4.     convertToZero(number);
  5.    
  6.     System.out.println(number); // prints zero
  7. }
  8.  
  9. public void convertToZero(int i) {
  10.     i = 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement