Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *
- *
- *
- */
- package arrays1;
- import java.util.Arrays;
- /**
- *
- * @author
- */
- public class Arrays1 {
- /**
- * @param args the command line arguments
- */
- private int[] numbers;
- private int size;
- public Arrays1(int size){
- numbers = new int[size];
- }
- public void add(int[] n)
- {
- for(int i=1; i<= numbers.length; i++){
- numbers[i]=n[i];}
- }
- public int[] getValues(){
- return numbers;
- }
- public static void main(String[] args) {
- // TODO code application logic here
- }
- Arrays1 u = new Arrays1(10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement