Answer:
public static ArrayList manyStrings(ArrayList<String> list, int n){
ArrayList<String> newList = new ArrayList<String>();
for (int i=0; i<list.size(); i++) {
for (int j=0; j<n; j++) {
newList.add(list.get(i));
}
}
return newList;
}
Explanation:
Create a method called manyStrings that takes two parameters, list and n
Create a new ArrayList that will hold new values
Create a nested for loop. The outer loop iterates through the list. The inner loop adds the elements, n of this element, to the newList.
When the loops are done, return the newList
Answer:
are u in HS or college work
I am trying to understand
Answer:
Ubuntu
Explanation:
Ubuntu is built on the Linux shell and is an operating system. Mac pro is a laptop model, the rest are software / websites
Well, if your asking about all types of meaning for play, I hope this works. Verb version: Play meaning 1: engage in activity for enjoyment and recreation rather than a serious or practical purpose. Meaning 2: take part in (a sport). Meaning 3: represent (a character) in a theatrical performance or a film. Meaning 4: perform on (a musical instrument). Noun version: meaning 1 of play: activity engaged in for enjoyment and recreation, especially by children. Meaning 2: the conducting of an athletic match or contest. Meaning 3: a dramatic work for the stage or to be broadcast. Meaning 4: the space in or through which a mechanism can or does move. Hope this helped!