Variable

Description

Critical Questions Associated With This Variable

public static String accountPassword = “hello”;

Setting static string variable to the word string “hello”

Q.1, Q.5, Q.6, Q.12

public static String secQuestion1Answer = “”;

Public static String variable setting itself to empty quotes

Q.1, Q.5, Q.6

public static String secQuestion2Answer = “”;

Public static String variable setting itself to empty quotes

Q.1, Q.5, Q.6

public static boolean accountInitialized = false;

Public static Boolean variable names “accountInitialized” which is then set to false

Q.1, Q.5, Q.6

public static boolean policyChecked = false;

Public static Boolean variable names “policyChecked” which is then set to false

Q.1, Q.5, Q.6

public static Wallet myWallet = new Wallet(1000000);

Sets static object Wallet for the wallet within the application. Set value of 1 million.

Q.1, Q.5

Timer timer = new timer();

Creating object called timer

Calendar now;

Using calendar class for market times of operation

int hour;

integer variable named “hour” used for time for market hours of operation

Q.1

int minute;

Integer variable named “minute” used for time for market hours of operation

Q.1

int day;

Integer variable named “day” used for time for market hours of operation

Q.1

Stock stock;

A stock object

public static boolean marketIsOpen = false;

Boolean variable that sets “MarketIsOpen” to false

Q.1, Q.5, Q.6

public boolean stockIsOwned = false;

Boolean variable that sets “stockisOwned” to false

Q.1, Q.5

public int x = 0;

Public integer variable “x” set to 0

Q.1

public static int rowCount = 0;

Public static integer variable “rowCount” to 0

Q.1, Q.5, Q.6