Comment on I wish
BrightHalo@lemmy.world 11 months ago
If only you could do something like…
def IsEven(number): return number % 2 == 0
Comment on I wish
BrightHalo@lemmy.world 11 months ago
If only you could do something like…
def IsEven(number): return number % 2 == 0
takeda@lemmy.world 11 months ago
Can’t do that, we are taking about Java.
BrightHalo@lemmy.world 11 months ago
You’re telling me Java doesn’t support the modulo operator?
Mrduckrocks@lemmy.world 11 months ago
Java does have the modulo/remainder support, just like python.