samedi 25 juillet 2020

Checking 1st if condition and then 2nd

Is there a way to put a check in for loop where 1st loop only checks if abb.iscurrently() and if its true go inside the block and in 2nd loop only checks abb.islately() avoid checking abb.iscurrently()? My Current code.

 for (){if (abb.iscurrentlyy() || abb.islately()) {

        if (reqFiles != null) {

            for (int i = 0; i < reqFiles.length; i++) {

                Future<ExecResult> lcukv = executor.submit(worker);
                executionFutureException.add(lcukv);
            }
        }

    } else { // do if condition is false.
    }
  }

Aucun commentaire:

Enregistrer un commentaire