Update CalculateDegree.java