I try to add a string "hello" into an array list, and convert the array list back into a string array, but I get weird output like this: [Ljava.lang.String;@1f26ecd2. What's the problem with that?
String s="hello";
ArrayList<String> base = new ArrayList<String>();
int a=0;
if(a==0)
{
base.add(s);
}
String[] get=base.toArray(new String[base.size()]);
System.out.print(get);