Update Derivative.java

swapped the print order of the strings in toString method, and also added NonTerminal parameter to the signature of the Derivative method.