Results 1 to 6 of 6
  1. #1
    Nikohw is offline Member
    Join Date
    Sep 2009
    Posts
    4
    Rep Power
    0

    Default transfer boolean to 1's and 0's

    topic closed, tyvm all
    Last edited by Nikohw; 09-12-2009 at 09:05 PM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Write a small method that takes a boolean and returns an int. Then call that method on each print.

  4. #4
    Nikohw is offline Member
    Join Date
    Sep 2009
    Posts
    4
    Rep Power
    0

    Default

    ye but how can i do that? i tried to change the autoput
    (p?1:0) < with that instead op p... does only work for the first line...

  5. #5
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    You are no longer making much sense.
    Better post the code you have tried.

  6. #6
    Nikohw is offline Member
    Join Date
    Sep 2009
    Posts
    4
    Rep Power
    0

Similar Threads

  1. 1 as an integer, not boolean
    By McChill in forum New To Java
    Replies: 1
    Last Post: 05-02-2009, 09:39 PM
  2. Simple Boolean
    By jigglywiggly in forum New To Java
    Replies: 3
    Last Post: 01-01-2009, 05:01 AM
  3. boolean to string
    By otoro_java in forum New To Java
    Replies: 2
    Last Post: 01-30-2008, 05:31 AM
  4. boolean variables
    By ravian in forum New To Java
    Replies: 3
    Last Post: 12-31-2007, 04:58 AM
  5. Boolean Expression
    By ritwik07 in forum New To Java
    Replies: 3
    Last Post: 07-11-2007, 04:11 AM

Posting Permissions

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