I thought you were a programminng student.
wayne brandon wrote:. . . work is getting in the way of my coding today . . .
An Eclipse drive or NetBeans? Oh no, you mean the old IDE hardware interface. I can still remember it .
wayne brandon wrote:. . . an ide hard drive that is sixteen years old lol . . .
Some people do ask silly questions
wayne brandon wrote:. . . is England going to win the world cup?
You drag somebody in from the street and threaten to hit them with the hammer until they tighten the nut for you You may have to lend them the correct size of spanner.
fred rosenberger wrote:. . . "How do I use a hammer to tighten a hex-nut?" . . .
wayne brandon wrote:in this exercise:
Given an int n, return true if it is within 10 of 100 or 200. Note: Math.abs(num) computes the absolute value of a number.
wayne brandon wrote:100 - 93 = 7, yes it is within 10 of 100
100 - 89 = 11, no it is not within 10 of 100
Would that prevent the risk of an arithmetic overflow? No, it probably wouldn't.
Liutauras Vilda wrote:. . . Technically you don't need to use Math.abs() . . .