代码搜索:methods
找到约 10,000 项符合「methods」的源代码
代码结果 10,000
www.eeworm.com/read/403009/11524690
cpp studentc.cpp
// studentc.cpp -- Student class using containment
#include "studentc.h"
using std::ostream;
using std::endl;
using std::istream;
using std::string;
//public methods
double Student::Average()
www.eeworm.com/read/158649/11595324
java icecream.java
//: c09:IceCream.java
// Returning arrays from methods.
package c09;
import com.bruceeckel.simpletest.*;
public class IceCream {
static String[] flav = {
"Chocolate", "Strawberry",
www.eeworm.com/read/158649/11595946
java stormyinning.java
//: c10:StormyInning.java
// Overridden methods may throw only the
// exceptions specified in their base-class
// versions, or exceptions derived from the
// base-class exceptions.
import com.
www.eeworm.com/read/347848/11632748
java staticimportdemo2.java
import java.util.Scanner;
import static java.lang.Math.PI;
//Alternatively, you can replace the above line with the following:
//import static java.lang.Math.*;
/**
Class with static methods
www.eeworm.com/read/156908/11753846
txt kcmcomba.txt
In embedded applications on low-powered processors, performance is a big
issue. Using either the KCM or Comba methods as described here can increase
speeds 4-fold.
To use the super-fast KCM (for
www.eeworm.com/read/344239/11894786
java printtest.java
//: access/PrintTest.java
// Uses the static printing methods in Print.java.
import static net.mindview.util.Print.*;
public class PrintTest {
public static void main(String[] args) {
pri
www.eeworm.com/read/344239/11894876
java icecream.java
//: arrays/IceCream.java
// Returning arrays from methods.
import java.util.*;
public class IceCream {
private static Random rand = new Random(47);
static final String[] FLAVORS = {
"C
www.eeworm.com/read/344238/11897507
java ifelsetest.java
// control/IfEsleTest.java
// TIJ4 Chapter Control, Exercise 6, page 144
/* Modify the two test() methods in the previous two programs so that they take
* two extra arguments begin and end, and so
www.eeworm.com/read/344238/11897551
java rodent9.java
// polymorphism/rodent/Rodent9.java
// TIJ4 Chapter Polymorphism, Exercise 9, page 289
/* Create an inheritance hierarchy of Rodent:Mouse, Gerbil, Hamster, etc. In the
* base class, provide methods
www.eeworm.com/read/153270/12044870
java fastvector.java
//Container Interface
package apriori;
import java.util.*;
import java.io.*;
/**d
* Implements a fast vector class without synchronized
* methods. Replaces java.util.Vector. (Synchronized me