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

Cattle Drive (java college)

 
Wendy Hebert
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my first java assignment from the cattle drive.
Please ridicule me if I need it.
Thanks, Wendy
//Program to accept an arguement from the command line, and
//print out 100 times.

(edited by Cindy to format code - else the nitpicking crew will get you on style . . . )


[This message has been edited by Cindy Glass (edited April 05, 2001).]
Please do not post solutions to the Cattle Drive assignments. If you have a specific question on some code, email it to nitpick@javaranch.com
[This message has been edited by Carl Trusiak (edited April 05, 2001).]
 
sekar thangavel
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good..nice start .. go ahead..
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wendy, do you need help with it or you are just posting it t let us know how simple it is?
Here is a possible solution If you need help...
- Check the args length to make sure it's greater than zero (note it could be more than 1)
- Use some kind of loop to print the arguements out, just like you are already doing.
Bosun
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition, this sort of question is normally posted in the Cattle Drive forum, but since we like to ridicule soooo much
 
Brad Ford
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shouldn't someone be deleting the above code so the answer (albeit an easy one) isn't given away?
 
Andy Ceponis
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah i thought people werent supposed to post cattle drive code. Down with the code!!!
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well if there was any real amount of it . . .
But I'll check with the other Bartenders.
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, we shouldn't have the code out there. I know it is small and an easy program, but we don't want to give things away. Wendy, send your code to nitpick@javaranch.com and we will pick it apart. Looks good but there are two things we nitpickers will pick apart. Send it in and we will whip it into shape
Bill
 
Wendy Hebert
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just would like to say sorry to all of you.
I will not do that again.
Am looking for some help for assignment #2.
I have written something but it does not work.
I will send what I have to nitpick@javaranch.com
Thanks
Wendy
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem Wendy. If you want to go through the cattle drive though, which I strongly encourage, you have to start with assignment 1a and move through it that way. Come over to the cattle drive forum and poke around.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic