Are there any specific tips you would give to someone else tackling the same problem? How would
what you suggest benefit that person in solving the problem?
I worked on creating more classes today. I learned that when ever you use a method in a testing program, you should never forget the parenthesis that come after it. I learned this when I tried running a program and I found out that there was an error, which was an absence of the () after the method I was referring to.
Example:
System.out.println("The perimeter of rectA is: " + rectA.getPerimeter());
The () after the getPerimeter method are very crucial in this code.
Friday, October 5, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment