JCP code- can anybody gve explanation

U

uthra

public class Delta
{ static boolean foo(char c)
{ System.out.println(c);
return true;
}
public static void main(String[] args)
{
int i=0;
for (foo('A'); foo('B') && (i<2);foo('C') )
{i++;
foo('D');
}
}
}
 
J

John Gordon

In said:
public class Delta
{ static boolean foo(char c)
{ System.out.println(c);
return true;
}
public static void main(String[] args)
{
int i=0;
for (foo('A'); foo('B') && (i<2);foo('C') )
{i++;
foo('D');
}
}
}

What are you asking for?

Do you want to know what this program produces?
Do you want to know *why* it produces?

Please be more clear.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,099
Members
48,773
Latest member
Kaybee

Latest Threads

Top