Computers and Technology

Can anyone help me do this question and please explain it to me? ArrayList eats = new ArrayList ( Arrays. asList( "apples", "almonds", "berry",
"avocados", "anchovies", "noodles", "artichokes", "acorn squash", "applesauce", "spices", "bugs" ));

for ( int i = 0; i < eats. size(); i++ )
{
String element = eats. get( i );
if ( element. charAt( element. length() - 1 ) == 's' )
{
eats. remove( i );
}
}
System. out. println( eats. toString() );

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, dramaqueenactr2040
Two technicians are discussing the common u-joint. technician a says its input and output speeds should be equal. technician b says that it normally has two yokes. which technician is correct?
Answers: 1
image
Computers and Technology, 22.06.2019 12:30, gerardoblk5931
An atom's diameter is about 0.1 nanometer (1×10-9m), and a human hair is about 1×10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
image
Computers and Technology, 24.06.2019 12:00, yagalneedshelp8338
Match the function to its purpose. fast worth 50pts.
Answers: 1
image
Computers and Technology, 24.06.2019 15:30, PresleyPie9452
George is working as a programming team lead. which statements correctly describe the skills that he requires?
Answers: 3
Do you know the correct answer?
Can anyone help me do this question and please explain it to me? ArrayList eats = new ArrayList ( A...

Questions in other subjects: