Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void printOdd(int numeros[], int n) {
- if (n >= numeros.length) {
- return;
- }
- if ((numeros[n] % 2) != 0) {
- System.out.println(numeros[n]);
- }
- printOdd(numeros, ++n);
- }
- public static boolean compareArrays(String n1[], String n2[]) {
- return n1.length == n2.length ? compareArrays(n1, n2, 0) : false;
- }
- public static boolean compareArrays(String n1[], String n2[], int {
- if (c >= n1.length - 1)
- return true;
- if (n1[c].equalsIgnoreCase(n2[c]))
- return compareArrays(n1, n2, ++c);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement