Android Object to String Convert objToStrNotNull(Object obj)

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

Description

obj To Str Not Null

Declaration

public static final String objToStrNotNull(Object obj) 

Method Source Code

//package com.java2s;

public class Main {

    public static final String objToStrNotNull(Object obj) {
        String s = (obj == null) ? "" : obj.toString();
        return s;
    }/* w  w  w  . j av a  2s  .  c om*/
}

Related

  1. getStringValue(Object str, String def)