• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

What are these Boolean symbols called?

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello good morning, can you tell me how to call these symbols &, | and ^?thanks!
 
Marshal
Posts: 81616
593
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See the Java® Language Specification (=JLS). They are bitwise AND (&), bitwise EXCLUSIVE OR (^) and bitwise OR (|), which are overloaded as logical AND (&), logical EXCLUSIVE OR (^) and logical OR (|).
Don't use logical AND (&) and logical OR (|); always use conditional AND (&&), and conditional OR (||).
There is no such thing as conditional INCLUSIVE OR.
 
Bartender
Posts: 11188
89
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:There is no such thing as conditional INCLUSIVE OR.


There is no such thing as conditional EXCLUSIVE OR.
 
Campbell Ritchie
Marshal
Posts: 81616
593
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aaaaaaaaaaaaaaaaaaaargh! What a mistake for me to make!
 
Bruno Valdeolmillos
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, they answered me that they are called like this
& is Ampersand, | is Pleca (or vertical bar) and ^ is the circumflex accent. Thanks
 
lowercase baba
Posts: 13091
67
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
'|' is also frequently called a pipe.
 
Campbell Ritchie
Marshal
Posts: 81616
593
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bruno Valdeolmillos wrote:. . . ^ is the circumflex accent. Thanks

I have always called that a caret.
 
Marshal
Posts: 28492
113
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I never heard of "pleca".
 
Bruno Valdeolmillos
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:I never heard of "pleca".



Because i speak spanish. Thanks for answerme.
https://www.codigosysignos.com/ascii/pleca
 
Don't MAKE me come back there with this tiny ad:
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic