Q:

Java array referencing another array

So is it possible to reference another array element from within a different array? 
Like this
String[] array1 = new String[] {"World"};
String[] array2 = new String[] {"Hello", array1[0]};

array1[0] = "David";

for(String element : array2)
   System.out.print(element);

When I try to print the array, it just prints HelloWorld and not HelloDavid
Is this possible?  If not, is this possible using variables? 

A:

What you have is valid, but the output will be HelloWorld, not HelloDavid
Although array1[0] will have a new value, array1 will be unaffected as it stores the String value reference, not the array reference, so when the array reference gets updated the Strings referenced in the array are no altered
Edit
Following on from your question what you're looking for is pointer functionality (as provided by C++).   The following multi-dimensional solution isn't exactly the same and its pretty clunky, but it would do what you wanted:
    String[] array1 = new String[]{"World"};
    String[][] array2 = new String[][]{new String[] {"Hello" }, array1};

    array1[0] = "David";

    for (String[] element : array2)
        System.out.print(element[0]);

    ==> output: HelloDavid

