-
Notifications
You must be signed in to change notification settings - Fork 1
API documentation
This is documentation of fields and method in our program. BE CAREFUL ABOUT STATIC AND NON-STATIC FIELD AND METHOD.
public static void waitingTime(int t)
makes the Program stops for a while for amount
t. t = 1000 is 1 second.
Returns nothing
public static int randomNum(int a, int b)
returns a number greater than equal to a and less than equal to b thus inclusive.
Returns
int xthat a ≤ x ≤ b
public static boolean percentProb(int a)
input a% and results in
trueorfalsebased on the probablity. Iftrue, within the probability. Iffalse, outside the probability.
Returns
booleantype :trueorfalse
public static char scanChar()
scanning a character typed from keyboard
Returns
chartype
public static String scanString()
scanning a
Stringvalue from keyboard
Returns
Stringtype
public static int scanInt()
scanning a
intvalue from keyboard
Returns
inttype
public static void stop()
just Program needed for scanner. NOT ACTUALLY USED
Returns nothing