From Sun\'s Java Tutorial, I would have thought this code would convert a set into an array.
import java.util.*;
public class Blagh {
public static void mai
It's OK.
You are not seeing the array contents with System.out.println(array) because println calls object.toString() to get the bytes from an Object for output.
Since HashSet overrides the default toString() implementation, you can see the set contents with System.out.println(set);
As arrays do not override the default toString() (that gives the class name and some sort of identity hash code), you are getting the fuzzy [Ljava.lang.String;@9b49e6
Hope that helps