permaculture playing cards*
The moose likes Beginning Java and the fly likes hello Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

hello

Ravindar Reddy
Greenhorn

Joined: Feb 02, 2006
Posts: 1
class hai
{
public static void main(String[] args)
{
//int i = 1;
for(int i =1;i<3;i++)
{
System.out.println("Hello World!");
}

if(i<5)
{
System.out.println("hello");
i++;
}
}
}



without initializing i globally or normally,i had to get o/p bcz i initialized in loop itself using that we can do it





Thanx u in advance
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
I don't understand the question.
arjun krishna
Greenhorn

Joined: Mar 02, 2006
Posts: 7
I dont understant the your goal.tricky ?
pls make it clear about your queation.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

This looks curiously similar to this thread. :roll:


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hello