Answer:
Explanation:
The following code is written in Java. It creates a function that takes in an ArrayList and an int parameter. Then it loops through the array and adds each element into a new array called newList but adds them the number of times that the numRepeats argument states. Output can be seen in the attached image below.
import java.util.ArrayList;
class Brainly{
public static void main(String[] args) {
ArrayList list = new ArrayList();
list.add('a');
list.add('b');
list.add('c');
ArrayList newList = repeatArrayList(list, 3);
System.out.println(newList);
}
public static ArrayList repeatArrayList(ArrayList list, int numRepeats) {
ArrayList newList = new ArrayList();
for (int x = 0; x < numRepeats; x++) {
for (int i = 0; i < list.size(); i++) {
newList.add(list.get(i));
}
}
return newList;
}
}
Update it so it wont do that
In order to play his graphics intensive games, Alex needs to install a video card that has a faster: microprocessor and graphics processing unit (GPU).
<h3>What is a
video card?</h3>
A video card can be defined as a printed circuit board or graphics card that is designed and developed to generate a feed of output and video signals which are sent to the display device of a computer such as a monitor.
In this scenario, Alex needs to install a video card that has a faster: microprocessor and graphics processing unit (GPU), so as to enable him to play his graphics intensive games.
Read more on video card here: brainly.com/question/14380167
Answer:
?>
Explanation:
The statement terminator for PHP language is ?>
PHP i.e. Hypertext Preprocessor.
It is widely used open source general purpose scripting language that is especially suited for web development and can be embedded into HTML.
PHP opening and closing tags are <? and ?> respectively.
hope you got the point any question can be asked in comments will be answered duly.