Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes
asked in CSC305 Fall 2019 by (8 points)

1 Answer

+5 votes
 
Best answer

Refactoring allows for you to rename a variable in eclipse in all of the places it is referenced very easily, allowing you to fix errors or make a variable name more suited for the area it is in.

answered by (8 points)
selected by
+4

Renaming a variable (or method, or class) may be the most common form of refactoring, but it barely scratches the surface of ALL the possible ways that code can be refactored.

Eclipse has support for other kinds of refactoring too. However, the best refactoring (big structural changes, simplifying code) usually requires human intelligence and hard work -- Eclipse can't just do it for you!

...