It is good practice to not declare variables with the same name as a variable with a larger scope. Consider the code below:


private double radius;
...
{
String radius =...