1. public class practice {
2. private static int x;
3.
4. public static void main (
String[] args)
5.{change(x);}
6.
7. public static void change (int x) {
8. x++;
9.}
10}
The program compiles and runs well. Why did the output print nothing?
I thought x was automatically initialized to 0 as a member variable.
Please help. Thank you in advance!
Moya