JCP code- can anybody gve explanation

Discussion in 'Java' started by uthra, Nov 10, 2006.

  1. uthra

    uthra Guest

    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');
    }
    }
    }
    uthra, Nov 10, 2006
    #1
    1. Advertising

  2. uthra

    John Gordon Guest

    In <> "uthra" <> 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,
    I think that you could be trusted not to shaft
    him." -- Robert Chang, rec.games.board
    John Gordon, Nov 10, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Catalin Porancea

    Can anybody help with this code?

    Catalin Porancea, Nov 6, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    1,338
    L. L.
    Nov 6, 2003
  2. =?iso-8859-1?q?vipul=20parmar?=

    can anybody tell me how to compile the C code with embedded python.

    =?iso-8859-1?q?vipul=20parmar?=, Mar 4, 2004, in forum: Python
    Replies:
    0
    Views:
    284
    =?iso-8859-1?q?vipul=20parmar?=
    Mar 4, 2004
  3. Andreas Leitgeb

    ambiguous questions for JCP ?

    Andreas Leitgeb, Nov 13, 2006, in forum: Java
    Replies:
    5
    Views:
    377
    Andreas Leitgeb
    Nov 14, 2006
  4. Lorenzo
    Replies:
    4
    Views:
    355
    Andrew Thompson
    Jan 18, 2007
  5. jeniffer

    Can anybody correct this code?

    jeniffer, Apr 24, 2006, in forum: C Programming
    Replies:
    1
    Views:
    298
    Andrew Poelstra
    Apr 24, 2006
Loading...

Share This Page