Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    22,471

    Re: Breaking If/Else Statements

    I cant directly see the condition at any one point. I need to search the entire ArrayList to see if the String currName value is the Name variable of any of the objects in the list ArrayList. So as...
  2. Replies
    9
    Views
    22,471

    Re: Breaking If/Else Statements

    I tried this:


    boolean checkIfIn = false;
    for(int y=0;y<list.size();y++)
    {
    if(list.get(y).Name.equals(currName))
    {
    checkIfIn =...
  3. Replies
    9
    Views
    22,471

    Re: Breaking If/Else Statements

    Ok, this is really killing me now.

    In the following code, I have placed a comment where I want to skip the rest of the loop steps if a condition is met.


    for(int...
  4. Replies
    9
    Views
    22,471

    Breaking If/Else Statements

    I want to know if it is possible to break out of an If/Else statement that is inside a loop. For example, you enter the Else Statement, do some more stuff, and under a condition that was determined...
Results 1 to 4 of 4