• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8739
  • Last Modified:

IIF in java

hi,
any function like this:
iif( numberOfPrizes % numberOfParticipants == 1);
to return true or false only...
0
ethar1
Asked:
ethar1
  • 2
1 Solution
 
objectsCommented:
boolean flag = (numberOfPrizes % numberOfParticipants == 1);
0
 
objectsCommented:
or if want the boolean value to be returned from a method you can use:

return (numberOfPrizes % numberOfParticipants == 1);
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now