nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comimagemessage-square148fedilinkarrow-up1850arrow-down117
arrow-up1833arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square148fedilink
minus-squareBrightHalo@lemmy.worldlinkfedilinkarrow-up10arrow-down7·edit-21 year agoIf only you could do something like… def IsEven(number): return number % 2 == 0
minus-squaretakeda@lemmy.worldlinkfedilinkarrow-up8·1 year agoCan’t do that, we are taking about Java.
minus-squareBrightHalo@lemmy.worldlinkfedilinkarrow-up5arrow-down1·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.