Normally in computer science mod is the short way of saying modulus (or modulo, depending on the conjugation), and in Java this is denoted with the % operator.
A modulo operation will naturally...
Type: Posts; User: helloworld922
Normally in computer science mod is the short way of saying modulus (or modulo, depending on the conjugation), and in Java this is denoted with the % operator.
A modulo operation will naturally...
Are you talking about the modulus operator (that's denoted by the % sign)?
5 % 3; // performs "5 modulo 3", returns the remainder of 5/3, or 2.