wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Cattle Drive (java college) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cattle Drive (java college)" Watch "Cattle Drive (java college)" New topic
Author

Cattle Drive (java college)

Wendy Hebert
Greenhorn

Joined: Mar 15, 2001
Posts: 2
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

Joined: Mar 24, 2001
Posts: 3
good..nice start .. go ahead..
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
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

Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
In addition, this sort of question is normally posted in the Cattle Drive forum, but since we like to ridicule soooo much

"JavaRanch, where the deer and the Certified play" - David O'Meara
Brad Ford
Ranch Hand

Joined: Mar 22, 2001
Posts: 40
Shouldn't someone be deleting the above code so the answer (albeit an easy one) isn't given away?
Andy Ceponis
Ranch Hand

Joined: Dec 20, 2000
Posts: 782
Yeah i thought people werent supposed to post cattle drive code. Down with the code!!!
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Well if there was any real amount of it . . .
But I'll check with the other Bartenders.
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
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

Joined: Mar 15, 2001
Posts: 2
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

Joined: Jun 30, 2000
Posts: 1070
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cattle Drive (java college)
 
Similar Threads
Assignment Submission
Collections - I just don't understand!
College dropout
creating a method
drawString() on Canvas