Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

more help with java problem

 
Troy Johnson
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again. I still cant seem to quite get this modification figured out and was looking for some more help. I am attempting to add two additional constructors, one that takes the "annual interest rate" and "loan amount" and another that just takes the "loan amount" only. However, I seem to be stuck along the way trying to add these two constructors. Please let me know if you have or more suggestions. Thanks again for the help.
Here is my original code:

Here is my code with the modifications I have so far trying to add the two new constructors.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to work OK
 
Troy Johnson
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot for your help Michael. The only other thing is that I need to invoke another constructor using the keyword "this". Sorry, I should have stated that at the beginning of my posting. I appreciate your helping me. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic