Here you can find the source of toString(Object object)
public static String toString(Object object)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static String toString(Object object) { return Objects.toString(object); }//from ww w.j a v a 2s . c o m }