Java Array Create toArrayClass(String className)

Here you can find the source of toArrayClass(String className)

Description

Returns the array class name for the given class name.

License

Open Source License

Parameter

Parameter Description
className a class name

Return

the corresponding array class

Declaration

public static String toArrayClass(String className) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from   ww w.j  a v a 2  s.c o  m*/
     * Returns the array class name for the given class name.
     *
     * @param className a class name
     * @return the corresponding array class
     */
    public static String toArrayClass(String className) {
        return "[L" + className + ";";
    }
}

Related

  1. toArray(String str, String split)
  2. toArray(String string)
  3. toArray(String text)
  4. toArray(T... items)
  5. toArray(T... items)
  6. toArrayDouble(final int[] array)
  7. toArrayElement(String s)
  8. toArrayLE(int val)