Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JCP code- can anybody gve explanation

Reply
Thread Tools

JCP code- can anybody gve explanation

 
 
uthra
Guest
Posts: n/a
 
      11-10-2006
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');
}
}
}

 
Reply With Quote
 
 
 
 
John Gordon
Guest
Posts: n/a
 
      11-10-2006
In <(E-Mail Removed). com> "uthra" <(E-Mail Removed)> writes:

> 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.

--
John Gordon "... What with you being his parents and all,
http://www.velocityreviews.com/forums/(E-Mail Removed) I think that you could be trusted not to shaft
him." -- Robert Chang, rec.games.board

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ambiguous questions for JCP ? Andreas Leitgeb Java 5 11-14-2006 02:49 PM
Can u tell me the explanation reg this problem Sree C Programming 13 06-12-2006 03:17 PM
Can u tell me the explanation reg this problem Sree C Programming 6 06-07-2006 03:33 AM
Who can give me a explanation? Robert MCAD 6 09-09-2004 03:25 PM
Can someone give me a short explanation? Senthoorkumaran Punniamoorthy Python 4 04-06-2004 01:48 AM



Advertisments