toString()方法

toString()方法在Object類中定義,其返回值是String類型,返回類名和他的引用地址java 在進行與其餘類型數據的鏈接操做時,自動調用tostring()方法code import java.util.Date; public class Main { public static void main(String[] args) { Date now = new Date
相關文章
相關標籤/搜索