Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a method

 
ione walker
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on the cattle Drive Assignment Java-4a (Say)
one of the "things you need to know" is
how to make your own methods.
I was able to do the assinment without makeing a method.
In fact when I tried the thing no longer worked.
I would like any sugestions on improvements to the code.
==============
/*Write a program that will read in a number from 0 to 99 and spell out that number. The program must also report any values that are out of range.
In other words, I want to type
java Say 22
and see
twenty-two
*/
(Please do not post solutions to the Cattle Drive assignments. The other folks need to think it through for themselves. I am SURE that you will get lot's of comments from the Cattle Drive nit-pickers when you send it in. Thanks - Cindy)
=====================
thanks for your help in clearing this up for me.
Ione Walker
Troy MI
[This message has been edited by Cindy Glass (edited April 30, 2001).]
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry that I had to do that, but that's how the rules go.
Cindy
 
ione walker
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D'oh!!!
sorry I forgot!

Originally posted by Cindy Glass:
Sorry that I had to do that, but that's how the rules go.
Cindy

 
Greg Tuck
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I concur - I saw no need for a method for the first Say assignment.
I used only two methods for the second part.
(And I won't give anything away by saying what I used them for, okay Cindy?)
Thanks,
g
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic