• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Challenges to refactor java program

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Problem with a java project refactoring
a)Code, Test, Evaluate and Refactor your own original Java program:

Write your Java code that implements your Phase 1 specifications. Document by adding Javadoc (/**...*/) and regular (//) comments that describe your resulting code. Debug (fix) your code when you discover incorrect behavior that doesn't match the specifications. Create unit tests using JUnit in JUnit. Evaluate your code and refactor to improve its internal structure.

b) Modify, Test, Evaluate and Refactor another Java program:

Write your Java code that implements your Phase 1 specifications. Document by adding

c) Research and Development:



i
 
author & internet detective
Posts: 42148
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This looks like homework. What specifically are you stuck on?
 
Sheriff
Posts: 17734
302
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your Uno.main() method is over 150 lines of code long! That's at least 10 times longer than it should be. You definitely need to refactor that. If you can't succinctly but completely describe what a method does in one or two sentences, then that method is doing too much.  You main() method is doing WAAAY too much.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic