This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Strange output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "Strange output" Watch "Strange output" New topic

Strange output

Pash Sonar

Joined: Jul 15, 2003
Posts: 6
Hi Folks,

I have received very strange output when I executed following program with different arguments. Kindly have a look at below.

When executed the above program with
1) java Test *
Output :- It lists all the files from current directory.

2) java Test &
Output :-
args.length :0
It doesn't accept & as an argument.

3) java Test ^
Output :-
Content 0:

args.length :1

Can somebody explain why is it so?

Thanks and best regards,
Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
assumed you ran this from a unix shell
the "&" means "Run this task in background"

The ^ has a meaning as well i think, but i don't know which -grin-

Have you checked out Aspose?
subject: Strange output
It's not a secret anymore!