代码搜索:toString
找到约 10,000 项符合「toString」的源代码
代码结果 10,000
www.eeworm.com/read/414988/11088139
java music9.java
// interfaces/music9/Music9.java
// TIJ4 Chapter Interfaces, Exercise 9, page 320
/* Refactor Music5.java by moving the common methods in Wind, Percussion and
* Stringed into an abstract class.
*/
www.eeworm.com/read/269447/11097706
cs webform1.aspx.cs
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System
www.eeworm.com/read/269276/11103172
cs util1.cs
using System;
using System.Data.Common;
using System.Data.OleDb;
using System.Data;
using System.Windows.Forms;
namespace bookstore
{
///
/// util1 的摘要说明。
///
publ
www.eeworm.com/read/269235/11103732
java sample36_4.java
package wyf.jc;
//自定义的枚举类型
enum MyEnum {EnumValue1,EnumValue2,EnumValue3}
//主类
class Sample36_4
{
public static void main(String[] args)
{
//获取枚举值数组
MyEnum[] mea=MyEnum.values();
//对
www.eeworm.com/read/269235/11103753
java sample35_7.java
package wyf.jc;
import java.util.*;
//自定义的泛型类
class MyValue
{
//定义由类型参数指定类型的成员变量
private T value;
//成员变量的set方法
public void setValue(T newValue)
{
this.value=newValue;
}
//重写的to
www.eeworm.com/read/269232/11103961
java sample14_15.java
package wyf.jc;
import java.util.*;
//元素类
class MyEntryForEach
{
//元素的成员变量声明
int intMember;
//构造器
public MyEntryForEach(int intMember)
{
this.intMember=intMember;
}
//重写toString方法
www.eeworm.com/read/269232/11103995
java sample17_12.java
package wyf.jc;
import java.util.*;
import java.util.concurrent.*;
//自定义的元素类
class MyElement
{
//表示元素内容的成员
String content;
//有参构造器
public MyElement(String content)
{
this.content=con
www.eeworm.com/read/269232/11104060
java sample12_2.java
package wyf.jc;
public class Sample12_2
{
public static void main(String[] args)
{
//创建对象并打印值
Integer i1=new Integer("20");
System.out.print("第一次封装器对象的值为:"+i1.toString());
//将引用i1指向另
www.eeworm.com/read/269232/11104071
java sample12_5.java
package wyf.jc;
public class Sample12_5
{
public static void main(String[] args)
{
//声明原始值
boolean bl=false;
byte b=-23;
char c='G';
short s=128;
int i=20;
long l=49L;
fl
www.eeworm.com/read/269232/11104073
java sample12_4.java
package wyf.jc;
public class Sample12_4
{
public static void main(String[] args)
{
//创建封装类对象
int x=50;
Integer i=new Integer(x);
Long l=new Long(80L);
Double d=new Double(12.56);