Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
    Bookmark Topic Watch Topic
  • New Topic

hello

 
Ravindar Reddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Report post to moderator
I don't understand the question.
 
arjun krishna
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
I dont understant the your goal.tricky ?
pls make it clear about your queation.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
This looks curiously similar to this thread. :roll:
 
    Bookmark Topic Watch Topic
  • New Topic