Question:
Deklarujete metodu, která má jako parametr pole řetězců: public void metoda(String [ ] pole) ● for (int i= 1; i++ ; i<= pole.length) {System.out.println(pole[i]);} ● for (int i= 0; i< pole.length; i++ ) {System.out.println(pole[i]); ● for (int i= 1; i<= pole.length; i++) {System.out.println(pole[i]);} ● for (String polozka : pole) {System.out.println(polozka);} ● for (int i= 0; i< pole.length; i+1 ) {System.out.println(pole[i]);
Author: Karel MarčíkAnswer:
● for (int i= 0; i< pole.length; i++ ) {System.out.println(pole[i]); ● for (String polozka : pole){System.out.println(polozka);}
0 / 5 (0 ratings)
1 answer(s) in total