Question: I am getting `Object obj` from a method. `obj = String[7]`. I am having difficulty in getting these 7 Strings and print them.

How can I get Strings out of it?

Answer: 
```
Object obj = ...;
...
if (obj instanceof String[]) {
  for (String element : ((String[]) obj)) { ... }
}

```

If you need to deal with various types of arrays, I would look into reflection APIs.
If you're sure you have an array, you could use [`Arrays.toString()`](http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#toString%28java.lang.Object%5B%5D%29):

```
System.out.println(Arrays.toString((Object[])obj));

```