Android Array to String Convert toString(Object obj)

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

Description

to String

Declaration

public static String toString(Object obj) 

Method Source Code

//package com.java2s;

public class Main {

    public static String toString(Object obj) {
        if (obj == null) {
            return "";
        }// w w  w.jav  a 2  s  .c  o m
        return obj.toString().trim();
    }
}

Related

  1. toString(float[] iArray)
  2. toString(long[] iArray)
  3. toString(int[] iArray)
  4. toString(String[] iArray)