I don't like 2 points:
1 - your static connection variables:
// Connection variables
static Connection conn = null;
Your static connection variables:
// Connection variables static Connection conn = null;
ifIf you want to access the connection from everywhere, create a singleton class ConnectionManager
.
int balance[] = new int[2];
2 - int balance[] = new int[2];
youYou should create a new class with 2 fields checking/saving.