Skip to content

Instantly share code, notes, and snippets.

@luckyduck
Created December 19, 2014 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckyduck/d7185cde75b875e04288 to your computer and use it in GitHub Desktop.
Save luckyduck/d7185cde75b875e04288 to your computer and use it in GitHub Desktop.
Java for()-Schleifen verschachteln
// schleifen in schleifen
int zeilen = 6;
int spalten = 10;
for ( int i = 0; i < zeilen; i++ ) {
for ( int j = 0; j < spalten; j++ ) {
System.out.print("x");
}
System.out.println();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment