why not write a method to do this work?
not sure if you are being told how to do something, but inheritance will handle most of your situations for you
write the methods you need in every subclass, as well as a place holder method in the superclass (i think its something like public <returntype> <name>; that will force the subclasses to have the method "public <returntype> <name>(){//stuff}
you make an instance of the superclass object (parent to both Degree and Radian) then call your methods, and it will automatically use the right one through the power of polymorphism. (hence no need for the booleans)