public void replace(int i, int num) {
	try{
			if (num < 0) {
				throw new NegIntegerException("Number is negative");
			}
	  	}catch(NegIntegerException e){
		  System.out.println("Error: Negative number!");
	  	}
	
	try{
		if (i >= index && i < 10) throw new NullPointerException();
	}catch(NullPointerException e){
		System.out.println("Index is out of bounds, reenter index.");
	}
	
	if(num > 0){
		try{
		numbers[i] = num;
		}catch(IndexOutOfBoundsException e){
			System.out.println("Error!! Index is outside of bounds.");
		}
	}
  }