Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java problem

 
Morgan mor
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ryan McGuire
Ranch Hand
Posts: 1061
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Morgan mor:

my.buildRect(?, ?);//WHAT DO I WRITE HERE???


Parse the String command line arguments into ints and then use those ints as args for the constructors for two new Points.

If I gave you all the exact method names, it would be too easy.

Ryan

P.S. Don't forget to catch the NumberFormatException.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic