代码搜索:toString
找到约 10,000 项符合「toString」的源代码
代码结果 10,000
www.eeworm.com/read/167133/5469522
java illegalinterface.java
interface Illegalif {
}
class IllegalInterface {
public static void main(String argv[]) {
try {
Class c = Class.forName("Illegalif");
Object o = c.newInstance();
// Shouldn't happen:
www.eeworm.com/read/167133/5469527
java testintlong.java
import java.lang.*;
class TestIntLong {
static boolean failed = false;
static void test(String s, String r) {
if (!s.equals(r)) {
System.out.println("result "+s+" should be "+r);
fa
www.eeworm.com/read/167133/5469530
java alias.java
// Demonstrates Serialization aliasing bug
import java.io.*;
class Pt implements Serializable {
public Pt(int x, int y) {
this.x=x;
this.y=y;
}
public void move(int dx, int dy) {
x+=dx;
www.eeworm.com/read/166833/5471952
java arrayindexoutofboundsexceptionexample.java
class ArrayIndexOutOfBoundsExceptionExample{
public static void main(String[] args) {
int[] myInt={1,2,3,4,5,6,7,8,9,10};
try{
for(int i=0;;i++)
System.out.println(myInt[i]);
}
www.eeworm.com/read/166408/5474711
java cyacas.java
package net.sf.yacas;
public class CYacas
{
public CYacas(LispOutput stdoutput)
{
try
{
env = new LispEnvironment(stdoutput);
tokenizer = new LispTokenizer();
printer =
www.eeworm.com/read/166404/5474910
java actionsavelayout.java
/*
* USE - UML based specification environment
* Copyright (C) 1999-2004 Mark Richters, University of Bremen
*
* This program is free software; you can redistribute it and/or
* modify it und
www.eeworm.com/read/166404/5475299
java expstdoptest.java
/*
* USE - UML based specification environment
* Copyright (C) 1999-2004 Mark Richters, University of Bremen
*
* This program is free software; you can redistribute it and/or
* modify it under th
www.eeworm.com/read/166250/5475924
java inheritancetest.java
// InheritanceTest.java
// 示范"is a" 关联
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
public class InheritanceTest {
public static void main( String args[] )
{
Po
www.eeworm.com/read/166250/5475925
java point.java
// Point.java
// 点类的定义
public class Point {
protected int x, y; //圆的坐标
// 确定point构造函数
public Point()
{
// 父类构造函数
setPoint( 0, 0 );
}
// point构造函数
publ
www.eeworm.com/read/166250/5475929
java point.java
//Point.java
// 点类定义
//package com.deitel.jhtp3.ch09;
public class Point {
protected int x, y; // 点的坐标
// 构造函数
public Point() { setPoint( 0, 0 ); }
// 构造函数
public Point( i