Java Object to String objToString(Object obj)

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

Description

obj To String

License

Open Source License

Declaration

public static String objToString(Object obj) 

Method Source Code

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

public class Main {

    public static String objToString(Object obj) {
        String result = "";
        try {//  w  ww.j a v  a 2s.  co m
            result = obj.toString();
        } catch (Exception e) {
            result = null;
        }
        return result;
    }
}

Related

  1. ObjectToString(Object x)
  2. objectToString(Object x)
  3. objectToString(Object[] obj)
  4. objectToStringNoNull(Object obj)
  5. objToString(Object obj)
  6. objToString(Object obj)
  7. objToString(Object[] obj)
  8. toString(Object o)
  9. toString(Object obj)