Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. /*
  2. *
  3. *
  4. *
  5. */
  6. package arrays1;
  7.  
  8. import java.util.Arrays;
  9.  
  10. /**
  11. *
  12. * @author
  13. */
  14. public class Arrays1 {
  15.  
  16. /**
  17. * @param args the command line arguments
  18. */
  19. private int[] numbers;
  20. private int size;
  21.  
  22.  
  23. public Arrays1(int size){
  24. numbers = new int[size];
  25.  
  26. }
  27. public void add(int[] n)
  28. {
  29. for(int i=1; i<= numbers.length; i++){
  30.  
  31. numbers[i]=n[i];}
  32. }
  33. public int[] getValues(){
  34. return numbers;
  35. }
  36.  
  37. public static void main(String[] args) {
  38. // TODO code application logic here
  39. }
  40. Arrays1 u = new Arrays1(10);
  41.  
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement