package chap10;
public class Q1 {
public static void main(String[] args){
double d = 1.23;
Dec dec = new Dec();
dec.decrement(d);
System.out.println(d);
}
class Dec{
public void decrement(double decMe){
decMe = decMe - 0.1;
}
}
}
请问哪里错了