Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23
  1. #21
    camaro01 is offline Member
    Join Date
    Jan 2011
    Posts
    52
    Rep Power
    0

    Default

    Junky,

    does is the following statement correct in Java?

    for (i = 60; i = 2; i -=2)

    Thanks,

  2. #22
    subith86 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Bangalore, India
    Posts
    102
    Rep Power
    0

    Default

    does is the following statement correct in Java?

    for (i = 60; i = 2; i -=2)
    not at all. the middle one should resolve to a boolean not an int.

  3. #23
    YAY
    YAY is offline Member
    Join Date
    Feb 2011
    Posts
    20
    Rep Power
    0

    Default

    Quote Originally Posted by subith86 View Post
    not at all. the middle one should resolve to a boolean not an int.
    In C it would be absolutely fine. Everything that in not zero is logical true.
    Yeah, but not in Java...
    :)

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Help in Printing
    By kirly in forum Advanced Java
    Replies: 3
    Last Post: 10-03-2011, 04:40 PM
  2. Printing
    By zzpprk in forum AWT / Swing
    Replies: 0
    Last Post: 01-20-2010, 12:25 PM
  3. printing an array of String through drawString
    By kaemonsaionji in forum New To Java
    Replies: 1
    Last Post: 02-23-2009, 05:38 PM
  4. Printing Help...
    By chiragkini in forum AWT / Swing
    Replies: 1
    Last Post: 02-17-2009, 07:07 AM
  5. Printing Example
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-11-2008, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •