Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.util.Random;
- public class main {
- public static void main(String[] args) {
- int elemento;
- Random r =new Random();
- Scanner S= new Scanner(System.in);
- listaSimple L = new listaSimple();
- System.out.println("Ingrese la cantidad de elementos : ");
- elemento=S.nextInt();
- for (int i=0;i<elemento;++i) {
- L.ingresarNodo(r.nextInt(30));
- }
- System.out.println("Lista original");
- L.verLista();
- System.out.println("Lista multiplo 2 y 5 a la vez");
- L.verListamultiple();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement