Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class Ejercicio1 here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- import java.util.ArrayList;
- public class Ejercicio1
- {
- public ArrayList<String> componerLista(String[] nombre, int[] cantidad){
- ArrayList<String> lista=new ArrayList<String>();
- for(int i=0;i<=nombre.length; i++){
- lista.add(nombre[i]+" "+cantidad[i]);
- }
- return lista;
- }
- }
Add Comment
Please, Sign In to add comment