程序:Long test1 = null;System.out.println("test1:"+String.valueOf(test1));结果:test1:null千万注意使用String.valueOf(