英文:
Can anyone explain to me the difference between .toSting and .string in Java?
问题
我想知道.toString和.string之间的区别,我了解.toString这个术语,并且在过去的一年里一直在使用它,但我最近遇到了.string,想要了解一下它。提前谢谢。
英文:
I want to know the difference between .toString and .string , i know the term .toString and have been using it since last 1 year but i recently came upon .string and curious to know about it. Thanks in advance.
答案1
得分: 1
在Java的“标准库”中没有名为.string()
的方法。
但是,在某些外部库和/或框架的API中可能会有.string()
方法。其中一个例子是OkHttp API中的ResponseBody
的.string()
方法。
英文:
There is no such method named .string()
in Java's "standard library".
But, it could some external library and/or framework having .string()
in their API. One of this example of such method is the .string()
method in the ResponseBody
of OkHttp API.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论