feat(ch 5): independence day

This commit is contained in:
Rafa Muñoz
2024-11-25 12:08:37 +01:00
parent f8035afcb7
commit 38fe9675d3
5 changed files with 331 additions and 0 deletions

View File

@@ -149,6 +149,19 @@ public class UtilsArrays {
}
/*
* @param m
*/
public static void imprimeMatriz (char m[][]) {
for (int i = 0; i < m.length; i++) {
for (int j = 0; j < m[i].length; j++) {
System.out.print(m[i][j] + " ");
}
System.out.println();
}
}
public static void ordenaArray (int a[], boolean asc) {
boolean hayIntercambios;
do {