Exercise : FightSong practice-it

Go, team, go!
You can do it.

Go, team, go!
You can do it.
You're the best,
In the West.
Go, team, go!
You can do it.

Go, team, go!
You can do it.
You're the best,
in the West.
Go, team, go!
You can do it.

Go, team, go!
You can do it.

The following program produces the output at left, but it has poor structure and redundancy. Download it and open it in jGRASP, then add at least two static methods.

continued on the next slide...

Exercise : FightSong, cont'd

Go, team, go!
You can do it.
Go, team, go! 
You can do it.
You're the best,
In the West.
Go, team, go!
You can do it.
Go, team, go! 
You can do it.
You're the best,
In the West.
Go, team, go!
You can do it.
Go, team, go!
You can do it.

Did you choose your methods well? Avoid the following pitfalls:

Compare your method choice with your neighbor's. Discuss any different decisions you made and ask a TA if you have questions about them.