7

I was trying to discover what >> meant in java, I think it's some sort of operation but not sure, so I typed it into Google: Java ">>" and got the same results as for just Java.

Is there any way to search for special characters, like same way to 'break' like how \" is used to store " in a String instead of ending the String.

8

You can't do that with Google. As others have proposed, you can be verbose ("java two greater than signs") or try close searches ("java operators") or...

Use SymbolHound. It's a search engine for programmers. It's not as good as Google, but it works most of the time. Searching for "java >>" resulted in this question on Stack Overflow.

Some languages have dedicated search engines, for example Hoogle will search for Haskell functions based on their signatures.

4

Keep it simple and spell it out. For example:

  • "java two greater than signs"
  • "java double greater than signs"

Would both work. The same concept works for finding out what || means in bash:

  • "bash two pipes"

When in doubt, sound it out.

3

A search for term java operators brought me here

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html

the symbol, according to the table:

shift   << >> >>>

or

assignment  = += -= *= /= %= &= ^= |= <<= >>= >>>=

also on stack overflow

https://stackoverflow.com/questions/4154553/the-command-break-in-java-what-if

Not the answer you're looking for? Browse other questions tagged or ask your own question.