Java Array From toArray(Object foo)

Here you can find the source of toArray(Object foo)

Description

to Array

License

Apache License

Declaration

public static Object[] toArray(Object foo) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Object[] toArray(Object foo) {
        if (foo.getClass().isArray()) {
            return (Object[]) foo;
        }//from  www  . j  a v  a2  s  .c o  m
        return null;
    }
}

Related

  1. toArray(int[] intArray)
  2. toArray(Iterable itr)
  3. toArray(long l, byte[] b, int offset)
  4. toArray(long value, byte[] dest, int offset, int length)
  5. toArray(Object a)
  6. toArray(Object o)
  7. toArray(Object... args)
  8. toArray(Object... values)
  9. toArray(String array)