rspec/rules/S1119/compliant.adoc
2022-02-04 16:28:24 +00:00

11 lines
246 B
Plaintext

== Compliant Solution
[source,text]
----
for (int row = 1; row < matrix.length; row++) { // Compliant
for (int col = 0; col < row; col++) {
System.out.println(matrix[row][col]); // Also prints 4, 7 and 8
}
}
----