-
-
Save uncoded-ro/e8c240937ad9a3bc369f30cc68a9f007 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ro.virtualcampus.list; | |
import java.util.List; | |
import java.util.Arrays; | |
public class AppListForEach { | |
public static void main(String args[]) { | |
String nume[] = {"Ioana", "Ghita", "Maria"}; | |
List<String> lista = Arrays.asList(nume); | |
for (String element : lista) | |
System.out.println(element); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment