nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comimagemessage-square187fedilinkarrow-up1926arrow-down117
arrow-up1909arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square187fedilink
minus-squareBrightHalo@lemmy.worldlinkfedilinkarrow-up13arrow-down8·edit-21 year agoIf only you could do something like… def IsEven(number): return number % 2 == 0
minus-squaretakeda@lemmy.worldlinkfedilinkarrow-up11·1 year agoCan’t do that, we are taking about Java.
minus-squareBrightHalo@lemmy.worldlinkfedilinkarrow-up5arrow-down2·1 year agoYou’re telling me Java doesn’t support the modulo operator?
minus-squareMrduckrocks@lemmy.worldlinkfedilinkarrow-up1·1 year agoJava does have the modulo/remainder support, just like python.
If only you could do something like…
def IsEven(number): return number % 2 == 0
Can’t do that, we are taking about Java.
You’re telling me Java doesn’t support the modulo operator?
Java does have the modulo/remainder support, just like python.