What kind of Java syntax is "== null? false:true;" -


I'm looking through code and wondering what this means:

  Boolean foo = Request GetParameter ("foo") == Tap? True False;  

This should be something that changes the returning string from getParameter () to a boolean.

But I have never seen this type of java with a question paper and colon (except for a foreach loop) and appreciate any hello!

This is a turner operator snippet:

  boolean foo = request. GetParameter ("foo") == Tap? True False;  

equals:

  Boolean foo; If (request.getParameter ("foo") == faucet) foo = false; Else foo = true;  

or (customized):

  Boolean foo = request.getParameter ("foo")! = Null;  

The basic form of the operator is as follows:

  (condition)? (Value if the position is correct): (value if position is false)  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -