mackenziemackley
mackenziemackley mackenziemackley
  • 02-11-2016
  • Computers and Technology
contestada

Write a program to add a set of students' names into an Arraylist and print it in the order they are inserted.

Respuesta :

kingburrito
kingburrito kingburrito
  • 03-11-2016
for ( int i = 0; i < names.size(); i++ ) {
System.out.println(Arrays.toString(names));
}
This should do the trick if youre in java. Its easy to convert to another language contact me for help :)
Answer Link

Otras preguntas

How do "rules" help scientists understand the world? O A. Rules of nature are created by scientists. B. Scientists use rules to form their hypotheses. C. Rules
Put the words in alphabetical order.
Line segment AB has endpoints A(−5,−8) and B(2,6). What are the coordinates of the point that partitions AB according to the part-to-part ratio 4:3? O (-1, 0) O
Am si eu nevoie de un rezumat pentru acest fragment Victor Ieronim Stoichiţă, Despărţirea de Bucureşt
a 40 kg rock lies at a bottom of a lake. The volume of water it displaces is 800cm³. Calculate the minimum force required to lift the rock from the bottom of th
Complete the table of values for y = 2x + 3
Which word is NOT associated with Vermont? A) Maple syrup B) Montpelier C) Mountain Standard Time D) New England
Aluminum reacts with chlorine gas to form aluminum chloride via the following reaction: 2Al(s) + 3Cl₂ (g)→2AlCl3 (s) You are given 31.0 g of aluminum and 36.0 g
(2n) (2m + 1) = [? ]mn + [ In = = 2([]mn + [ ]n) = even
True or False: Climate change is a direct effect of the hole in Earth's ozone layer. A True B False