public int getChargeStartTime(int chargeTime) {
int startTime = 0;
for (int i = 1; i < 24; i++) {
if (this.getChargingCost(i, chargeTime)
this.getChargingCost(startTime, chargeTime)) {
startTime = i;
}
}
return startTime;
}
int i = 0;
public boolean isStrictlyIncreasing () {
for (i < digitList.size) {
if (digitList.get(i).intValue() >= digitList.get(i-1).intValue)
return false;
else {
return true;
}
}
}
public boolean isBalanced(ArrayList<String> delimiters) {
int tally = 0;
for(int i = 0; i ,delimiters.size(); i++)
{
if(delimiters.get(i).equals(openDel)) {
tally ++;
}
else {
tally--;
}
if(tally < 0) {
return false;
}
}
}
return tally == 0;
}