Baixe o app para aproveitar ainda mais
Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package introducaoia; import java.util.ArrayList; /** * * @author marco.silva2 */ public class Divide { static ArrayList div(ArrayList origem, int min, int max){ ArrayList novo = new ArrayList(); for(int i = min; i <= max; i++){ novo.add(origem.get(i)); } return novo; } }
Compartilhar