Java Object to String objectToString(Object obj)

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

Description

object To String

License

Open Source License

Declaration

public static String objectToString(Object obj) 

Method Source Code

//package com.java2s;

public class Main {

    public static String objectToString(Object obj) {
        if (obj == null) {
            return "";
        }/*from  w  ww.j ava2s .  c o  m*/
        return String.valueOf(obj);
    }
}

Related

  1. objectToString(Object in, boolean ignoreNull)
  2. objectToString(Object o)
  3. objectToString(Object o)
  4. objectToString(Object o)
  5. objectToString(Object o, boolean quoteStrings)
  6. objectToString(Object obj)
  7. objectToString(Object obj)
  8. objectToString(Object obj)
  9. objectToString(Object obj, String defaultvalue)