reference for primitive like int?
Like this
Int day = 30;
System.out.println(day);// show 30
Public void change(int T){
T=50;
}
Change (day);
System.out.println(day);// show 50 ?
Is there a way? For example in c++ we use & befor argument
T and t are different
You should use mutable objects. Integer is immutable as well as other primitive wrapper classes.
Обсуждают сегодня