Answer:
Answered below
Explanation:
//Program is written in Java programming language.
public ArrayList<Integer> getOdds( ArrayList<Integer> list){
// Create variables to hold the new list and the //indexes.
int i;
ArrayList<Integer> oddList = new ArrayList<Integer>()
//Loop over the list and add every odd element // to the new list
for ( i = 0; i < list.length; I++){
if ( list[i] % 2 != 0){
oddsList.add(list[i])
}
}
return oddList;
}