• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Cattle Drive (java college)

 
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).]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good..nice start .. go ahead..
 
Ranch Hand
Posts: 1512
  • 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
 
"The Hood"
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
 
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?
 
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"
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.
 
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
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic