Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中写了这个
LastFmServer server = AndroidLastFmServerFactory.getServer(); Artist[] results; results = server.searchForArtist("Hatebreed"); Log.e("", results[2].toString());
为什么这段代码会出现在 logcat 中?
fm.last.api.Artist@2bf03488
这是因为该类没有实现它自己的 toString,所以你最终调用了继承自java.lang.Object它的类,它为你提供了类名和它的哈希值。
java.lang.Object