Java Object Array to String convertObjectToString(Object obj)

Here you can find the source of convertObjectToString(Object obj)

Description

Converts Object to String.

License

Open Source License

Parameter

Parameter Description
obj - the given value to convert.

Return

converted value.

Declaration

static String convertObjectToString(Object obj) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from   w w  w .  j  a  v  a 2s. c o  m*/
     * Converts Object to String.
     *
     * @param obj
     *            - the given value to convert.
     * @return converted value.
     */
    static String convertObjectToString(Object obj) {
        return obj == null ? null : obj.toString();
    }
}

Related

  1. convertObjectArrayToStringArray(Object[] array)
  2. convertObjectArrayToStringArray(Object[] objectArray)
  3. convertObjectToString(Object obj)
  4. convertObjectToString(Object object)
  5. convertObjectToString(Object value)
  6. objectArrayToString(Object object)