As it is, it is not possible. IF-ELSE structures are precisely to choose between two different blocks of statements. If it enters the IF part, it will never enter the ELSE part, and vice-versa.
On Thu, Jul 16, 2009 at 4:19 PM, ganesh raj <[email protected]>wrote: > if(________________) > { > system,out.println("hello"); > } > else > system,out.println("world"); > > > > required output is -----> hello world > > wat should be the condition to get the output?? > > > > > -- Diogo Sales Oliveira --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
