Re: Clock that beeps every 15 30 45 00

You should read the API doc for any class and method you want to use.
Several problems with this code: if (System.currentTimeMillis() = 15 | 30 | 45 |) {
1)The method does not return seconds. Read the API doc to see what it returns
2) the = operator is for assigning values. The == operator is for comparing the values of operands
3) The | operator ORs together two operands and returns an int value The || operator connects two boolean expressions into a single boolean value.
4) To compare one operand to several values, there must be a separate expression for each comparison. There is no shortcut: (a < b) || (a < c) || (a < d)