Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 1137
8
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!