Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.