代码搜索:toString
找到约 10,000 项符合「toString」的源代码
代码结果 10,000
www.eeworm.com/read/165570/5481417
java book.java
/** A class representing a book. It has instance variables
title, author, and isbn number, and a toString method. */
package library;
public class Book
{
/** Attributes of a book */
prote
www.eeworm.com/read/165570/5481418
java testchapter7.java
import simple.*;
import patronBook.*;
import java.io.*;
/** This class tests the classes of Chapter 6. */
public class TestChapter7
{
static FileWriter outFile=null;
public static void
www.eeworm.com/read/165570/5481428
java betterlinkednode.java
package simple;
public class BetterLinkedNode
{
/** contents of cell */
public Object item;
/** pointer to next node */
public BetterLinkedNode nextNode;
/** set item equal to x
www.eeworm.com/read/165570/5481435
java testlists.java
package simple;
import patronBook.*;
import java.io.*;
/** This class tests all the lists in the list package */
public class TestLists
{
static public void useList() throws Exception
www.eeworm.com/read/165570/5481472
java customer.java
package People;
import Accounts.Account;
import dslib.list.LinkedListUos;
/** A bank customer with a list of accounts. */
public class Customer extends Person
{
/** A linked list of account
www.eeworm.com/read/165441/5482459
java hitcounterfilter.java
/*
* Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. U.S.
* Government Rights - Commercial software. Government users are subject
* to the Sun Microsystems, Inc. standard license
www.eeworm.com/read/164604/5488713
java marinarasauce.java
package headfirst.factory.pizzaaf;
public class MarinaraSauce implements Sauce {
public String toString() {
return "Marinara Sauce";
}
}
www.eeworm.com/read/164604/5488714
java slicedpepperoni.java
package headfirst.factory.pizzaaf;
public class SlicedPepperoni implements Pepperoni {
public String toString() {
return "Sliced Pepperoni";
}
}
www.eeworm.com/read/164604/5488715
java onion.java
package headfirst.factory.pizzaaf;
public class Onion implements Veggies {
public String toString() {
return "Onion";
}
}