Refactoring Lab

CSC 4700  Software Engineering


This is a hands-on lab activity that will broaden your understanding of refactoring and the use of Eclipse. This is for skills development and personal enrichment... there is nothing to hand in.

  1. Start Eclipse and create a new Java project called "Utility"

  2. In the Utility project, create a new Package called "calc"

  3. In the calc package, create a new file called Utility.java

  4. Copy and paste the code from Utility.java into the new file you created

  5. Run the code, and figure out what it does

  6. Refactor the code using Eclipse's automated tools (or manually when needed) to improve it as much as possible, by doing things like:

 


01/24/2018