Skip to content

API documentation

Jaeyoung edited this page Sep 24, 2020 · 5 revisions

Documentation

This is documentation of fields and method in our program. BE CAREFUL ABOUT STATIC AND NON-STATIC FIELD AND METHOD.

Program

Methods

waitingTime(int t)

public static void waitingTime(int t)

Description

makes the Program stops for a while for amount t. t = 1000 is 1 second.

Return

Returns nothing


randomNum(int a, int b)

public static int randomNum(int a, int b)

Description

returns a number greater than equal to a and less than equal to b thus inclusive.

Return

Returns int x that a ≤ x ≤ b


percentProb(int a)

public static boolean percentProb(int a)

Description

input a% and results in true or false based on the probablity. If true, within the probability. If false, outside the probability.

Return

Returns boolean type : true or false


scanChar()

public static char scanChar()

Description

scanning a character typed from keyboard

Return

Returns char type


scanString()

public static String scanString()

Description

scanning a String value from keyboard

Return

Returns String type


scanInt()

public static int scanInt()

Description

scanning a int value from keyboard

Return

Returns int type


stop()

public static void stop()

Description

just Program needed for scanner. NOT ACTUALLY USED

Return

Returns nothing


Description
Return
Clone this wiki locally