7. API 覲願鍵java.lang.MathCode : Math.abs(-200)Output : 200staticintabs(inta) Returns the absolute value of an int value.
8. API 覲願鍵java.util.RandomCode : new Random().nextInt(100);Output : 0~99intnextInt() Returns the next pseudorandom, uniformly distributed int valuefrom this random number generator's sequence.intnextInt(intn)Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.