Skip to content

Instantly share code, notes, and snippets.

@jstitch
Created July 23, 2014 04:08
Show Gist options
  • Select an option

  • Save jstitch/2bbf10bfaae0d7aceba1 to your computer and use it in GitHub Desktop.

Select an option

Save jstitch/2bbf10bfaae0d7aceba1 to your computer and use it in GitHub Desktop.

Revisions

  1. jstitch created this gist Jul 23, 2014.
    13 changes: 13 additions & 0 deletions BreakContinue.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    public class BreakContinue {
    public static void main(String [] args) {
    Integer cuenta = 100;

    for (Integer i=0; i<cuenta; i++) {
    if (i % 13 == 0 && i > 20) {
    System.out.println("saliendo prematuramente...");
    break;
    }
    System.out.println("Numero: " + i.toString());
    }
    }
    }