Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- int number = 5;
- convertToZero(number);
- System.out.println(number); // prints zero
- }
- public void convertToZero(int i) {
- i = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement