Buscar

Divide

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;
 }
}

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Outros materiais