Results 1 to 4 of 4
  1. #1
    Playagood is offline Member
    Join Date
    Feb 2012
    Posts
    7
    Rep Power
    0

    Default >>> and >> Logical operators

    Can someone show me how these 2 symbols work (>>> and >>) ?


    8 >>> 2 = 2 (1000 >>> 0010=0010) and 8>>>3 = 1(1000 >>> 3 = 0001) ?




    Thank you

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

    Default Re: >>> and >> Logical operators

    They're not "logical operators" but bit shifting operators. Google -- Java bit shift operators -- and the first hit is for a decent intro tutorial.

  3. #3
    Playagood is offline Member
    Join Date
    Feb 2012
    Posts
    7
    Rep Power
    0

    Default Re: >>> and >> Logical operators

    Merci beaucoup. Thank you

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

Similar Threads

  1. using logical OR in switch
    By Mapisto in forum New To Java
    Replies: 4
    Last Post: 12-02-2011, 02:53 AM
  2. if block with logical or
    By Ranu in forum New To Java
    Replies: 6
    Last Post: 07-01-2010, 08:11 AM
  3. New to operators, need some help...
    By Stryker4526 in forum New To Java
    Replies: 4
    Last Post: 09-26-2009, 01:29 AM
  4. Logical Gates
    By lingz89 in forum New To Java
    Replies: 1
    Last Post: 08-17-2009, 01: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
  •