Built-in Ex: Polar Coordinates

Polar coordinates.
Write a program CartesianToPolar_YI.java that converts from Cartesian to polar coordinates. Your program should take two real numbers x and y on the command line and print the polar coordinates r and θ. Use the Java method Math.atan2(y, x), which computes the arctangent value of y/x that is in the range from -π to π.

screen-shot-2016-09-20-at-9-01-32-am