public class StationController {
int a = 1;
String str = new String("test");
char[] ch = { '1', '2', '3' };
public static void main(String[] args) {
StationController ex = new StationController();
ex.change(ex.str, ex.ch, ex.a);
System.out.println(ex.str);
System.out.println(ex.ch);
System.out.println(ex.a);
}
private void change(String str2, char[] ch2, int a) {
str = "good";
ch[0] = '0';
a = 2;
}
}
good
023
1