Replacing some Java standard library calls with Princeton standard library calls.