代码搜索:toString
找到约 10,000 项符合「toString」的源代码
代码结果 10,000
www.eeworm.com/read/414988/11087555
java shapes4(1).java
// typeinfo/Shapes4.java
// TIJ4 Chapter Typeinfo, Exercise 4, page 561
/* Modify the previous exercise so that it uses instancof to check the
* type before performing the downcast.
*/
import jav
www.eeworm.com/read/414988/11087556
java shapes6.java
// typeinfo/Shapes6.java
// TIJ4 Chapter Typeinfo, Exercise 6, page 561
/* Modify Shapes.java so that it can "highlight" (set a flag in)
* all shapes of a particular type. The toString() method fo
www.eeworm.com/read/414988/11087558
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/414988/11087579
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/414988/11087609
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/414988/11087637
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/414988/11087646
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/414988/11087648
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/414988/11087655
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/414988/11087662
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