Advertisement
CotaIgnorada

arreglos

Apr 6th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. package arreglos;
  2.  
  3. import java.util.Scanner;
  4.  
  5.  
  6. public class Arreglos {
  7. public int i;
  8. public int notamanio;
  9. public int nombre;
  10. int[] a;
  11.  
  12. public void tamanio(){
  13. Scanner scan = new Scanner(System.in);
  14. notamanio = scan.nextInt();
  15. }
  16.  
  17. public void llenar(){
  18. a = new a[i];
  19. Random nombre = new Random;
  20. for(i=0; i < notamanio ; i++){
  21. a[i]= new.nombre;
  22. }
  23. }
  24.  
  25.  
  26.  
  27. public static void main(String[] args) {
  28. // TODO code application logic here
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement