Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java problem  RSS feed

 
Morgan mor
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ryan McGuire
Ranch Hand
Posts: 1113
7
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!