How do i add the or use While loop in my code
<p>I want to use the while loop so it can catch any invalid input like letters or random %%$@@...etc</p>

<p>Im new to java...THANKS alot for ur guys help :)
here is what im working on:</p>

<pre><code>import java.util.Scanner; 

public class AreaCircle {

    public static void main(String[] args) {
Scanner sc = new Scanner(System.in); // read the keyboard
System.out.println("This program will calculate the area of a circle");

System.out.println("Enter radius:");//Print to screen

double r = sc.nextDouble(); // Read in the double from the keyboard


double area = (3.14 *r * r); 
String output = "Radius: " + r + "\n";
output = output + "Area: " + area + "\n";
System.out.println("The area of the circle  is " + area);

    }
}
</code></pre>
