All variables in Java are passed by value. So if you pass a variable to a method that changes the value, the variable still exists in its original state.
public class Thingie{
public Thingie(){
}
public int changeValue(int i){
return i + 7;
}
public static void main(String[] args){
Thingie foo = new Thingie();
int start = 10;
//this will print 10
System.out.println(start);
//this will print 17
System.out.println(foo.changeValue(start));
//this will still print 10
System.out.println(start);
}
}
Hopefully this helps.