Question: Java coding The ArayList method set has the following AP public void removeRange (int fromIndex, int toIndex) Removes from this list all of the elements
Java coding

The ArayList method set has the following AP public void removeRange (int fromIndex, int toIndex) Removes from this list all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive ArrayList-string> languages = new ArrayList-string>( ); languages.add( "Java") languages.add( "Sql"): languages.add "Perl") languages.add"Python") // at this point, words looks like: Java, Sql. Perl, Python Remove langauges "Sq" and "Perl" using one statement, using removeRange
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
