Background. All Java objects have a toString() method, which is invoked when you try to print the object. System.out.println(myObject); // invokes myObject.
確定! 回上一頁