use the
System.out.println("d is now " + d);
what else are you trying to do?