This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java" Watch "java" New topic


d one 2 die 4

Joined: May 14, 2003
Posts: 4
write a programe that throws an exception when the user doesnot enter any argument at the command line the programe shud also display teh number of argument?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Why not trying doing your own homework?

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Donald R. Cossitt
Ranch Hand

Joined: Jan 31, 2003
Posts: 401
"deja vu all over with again" - Yogi Berra
This may help.

Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
This forum is intended for discussion about the running of JavaRanch.
Moving to Beginner.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Originally posted by madjava user (a.k.a d one 2 die 4):

Welcome to JavaRanch! Please adjust your display name to meet the JavaRanch Naming Policy.
You can change it here.


"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Rick Gentry
Ranch Hand

Joined: Dec 14, 2002
Posts: 63
Hmmm, code that shows an exception...

edited by Marilyn to remove insults. Be nice!
[ May 25, 2003: Message edited by: Marilyn de Queiroz ]
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
i think you can find sample code in just any java introduction books.
I agree. Here's the link:
subject: java
It's not a secret anymore!