refactoring this function in Java
- by Joel
Hi folks,
I'm learning Java, and I know one of the big complaints about newbie programmers is that we make really long and involved methods that should be broken into several. Well here is one I wrote and is a perfect example. :-D.
public void buildBall(){
/* sets the x and y value for the center of the canvas */
double i =…