i found a similar query under the "C / C++" forum that was answered apparently using the "C" language. im in dire need of it in Java. i was wondering if someone could help me with it as i am having a hard time figuring out where to begin.

can anyone please show me how to write the java program taking into consideration the following conditions? :

1) must be a stand-alone application
2) calculation of circle's circumference must be from a radius which will be an integer value input from the keyboard.
3) create a method that will accept the integer and perform the calculation using the formula: "2*pi*r".
4) may use either the value "3.14" or the Java variable, "Math.PI" for the calculation.


i would really appreciate the help! thanks a bunch in advance!


PS - by the way, i use the Eclipse SDK compiler.