代码搜索:methods
找到约 10,000 项符合「methods」的源代码
代码结果 10,000
www.eeworm.com/read/373369/9460096
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/373369/9460139
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/177199/9465611
java e4_12.java
// Fig. 11.4: StringStartEnd.java
// String methods startsWith and endsWith.
import javax.swing.*;
//StringStartEnd
public class E4_12{
public static void main( String args[] )
{
www.eeworm.com/read/177199/9465624
java e4_20.java
// Fig. 11.12: StringBufferChars.java
// StringBuffer methods charAt, setCharAt, getChars and reverse.
import javax.swing.*;
//StringBufferChars
public class E4_20 {
public static void main(
www.eeworm.com/read/177199/9465642
java e4_11.java
// Fig. 11.3: StringCompare.java
// String methods equals, equalsIgnoreCase, compareTo and regionMatches.
import javax.swing.JOptionPane;
// StringCompare
public class E4_11{
public static v
www.eeworm.com/read/176362/9501184
h socket.h
#if !defined(Socket_H)
#define Socket_H
#include "Lock.h"
#include "Thread.h"
#include
#include
using namespace std;
// define mapping of error methods
#if defined(
www.eeworm.com/read/175135/9558417
cpp stonewt1.cpp
// stonewt1.cpp -- Stonewt class methods + conversion functions
#include
using std::cout;
#include "stonewt1.h"
// construct Stonewt object from double value
Stonewt::Stonewt(double
www.eeworm.com/read/175135/9558494
cpp studenti.cpp
// studenti.cpp -- Student class using private inheritance
#include "studenti.h"
using std::ostream;
using std::endl;
using std::istream;
using std::string;
// public methods
double Student::
www.eeworm.com/read/175135/9558501
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/169058/9882763
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