代码搜索:toString
找到约 10,000 项符合「toString」的源代码
代码结果 10,000
www.eeworm.com/read/395876/8147570
java showmethods17.java
// typeinfo/ShowMethods17.java
// TIJ4 Chapter Typeinfo, Exercise 17, page 593
// Modify the regular expression in ShowMethods.java to additionally
// strip off the keywords native and final (hint:
www.eeworm.com/read/395876/8147595
java ex2(2).java
// exceptions/Ex2.java
// TIJ4 Chapter Exceptions, Exercise 2, page 452
/* Define an object reference and initialize it to null. Try to call a method
* through this reference. Now wrap the code in
www.eeworm.com/read/395876/8147634
java lostmessagefound19.java
// exceptions/LostMessageFound19.java
// TIJ4 Chapter Exceptions, Exercise 19, page 479
// Repair the problem in LostMessage.java by guarding the call in the
// finally clause.
class VeryImporta
www.eeworm.com/read/395876/8147673
java lostmessage18.java
// exceptions/LostMessage18.java
// TIJ4 Chapter Exceptions, Exercise 18, page 479
// Add a second level of exception loss to LostMessage.java so that the
// HoHumException is itself replaced by a
www.eeworm.com/read/395876/8147689
java music7.java
// polymorphism/music7/Music7.java
// TIJ4 Chapter Polymorphism, Exercise 7, page 289
/* Add a new Instrument to Music3.java and verify that polymorphism works for
* your new type.
*/
package pol
www.eeworm.com/read/395876/8147695
java biking17.java
// polymorphism/biking/Biking17.java
// TIJ4 Chapter Polymorphism, Exercise 17, page 310
/* Using the Cycle hierarchy from Exercise 1, add a balance method() to
* Unicycle and Bicycle, but not to
www.eeworm.com/read/395876/8147711
java music8.java
// polymorphism/music8/Music8.java
// TIJ4 Chapter Polymorphism, Exercise 8, page 289
/* Modify Music3.java so that it randomly creates Instrument objects the way
* Shapes.java does.
*/
/* Soluti
www.eeworm.com/read/395876/8147726
java music6.java
// polymorphism/music6/Music6.java
// TIJ4 Chapter Polymorphism, Exercise 6, page 289
/* Change Music3.java so that what() beccomes the root Object method toString().
* Try printing the Instrument
www.eeworm.com/read/395876/8147730
java biking.java
// polymorphism/biking/Biking.java
// TIJ4 Chapter Polymorphism, Exercise 1, page 281
/* Create a Cycle class, with subclasses Unicycle, Bicycle and Tricycle.
* Demonstrate that an instance of eac
www.eeworm.com/read/395876/8147789
java ex9(3).java
// arrays//Ex9.java
// TIJ4 Chapter Arrays, Exercise 9, page 762
/* Create the classes necessary for the Peel example and
* show that the compiler doesn't accept it. Fix the problem
* usin