import java.util.List;
import java.util.ArrayList;
public class Test {
public static void main(String[] args) {
List<String> values = new ArrayList<String>() {
{
add("one");
add("two");
add("three");
}
};
System.out.print("values: ");
for (String value : values) {
System.out.print(value + " ");
}
}
}
Login in to like
Login in to comment