Tuesday, October 18, 2005

if (confidence == null ) life = "waste" ;

I had an amazing thought..
I was thinking of some great people, being very successful.....
some people being unsuccessful......
and some (extreme) people , never caring anything in life !!........


This is the program, come to mind suddenly:

--------------------------------------------

String situation[] = {"sad" , "mad", "happy" , "bad" , "terrible","exciting"};
String life = null;
while (confidence != null )
{
life = situation [ new Random(). nextInt(situation.length)] ;
}
life = "waste" ; // Then, No meaning in living man!!!

-----------------------------------------------------

A m I right Ram? I didnt handle any exception! :)

1 comment:

Ramprasad said...

No errors and the program is awesome