代码搜索:getClass
找到约 825 项符合「getClass」的源代码
代码结果 825
www.eeworm.com/read/325023/13232351
java lostinformation.java
//: generics/LostInformation.java
import java.util.*;
class Frob {}
class Fnorkle {}
class Quark {}
class Particle {}
public class LostInformation {
public static vo
www.eeworm.com/read/325023/13232390
java basicholder.java
//: generics/BasicHolder.java
public class BasicHolder {
T element;
void set(T arg) { element = arg; }
T get() { return element; }
void f() {
System.out.println(element.getClass
www.eeworm.com/read/325023/13232485
java varargtype.java
//: initialization/VarargType.java
public class VarargType {
static void f(Character... args) {
System.out.print(args.getClass());
System.out.println(" length " + args.length);
}
www.eeworm.com/read/137428/13322365
java arrayexample.java
//: ArrayExample.java
//package g3ds.joop.ch3;
public class ArrayExample{
public static void main(String[] args){
//声明一个二维数组,并直接进行初始化
int[][] m1={{0, 1, 2},{3, 4},{5, 6, 7, 8, 9}};
Sy
www.eeworm.com/read/323398/13341595
java objectarraymorpher.java
/*
* Copyright 2006 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y
www.eeworm.com/read/137140/13344000
java app9_11.java
// app9_11, 利用getClass()取得调用对象所属的类
class Caaa
{
private int num;
public Caaa(int n){
num=n;
}
}
public class app9_11
{
public static void main(String args[]){
www.eeworm.com/read/320605/13422231
java faces.java
//: c14:Faces.java
// Icon behavior in Jbuttons.
//
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright
www.eeworm.com/read/320605/13422347
java familyvsexacttype.java
//: c10:FamilyVsExactType.java
// The difference between instanceof and class
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
www.eeworm.com/read/316867/13515808
java arraygrowtest.java
/**
* @version 1.00 11 Mar 1997
* @author Cay Horstmann
*/
import java.lang.reflect.*;
import corejava.*;
public class ArrayGrowTest
{ public static void main(String[] args)
{ int[
www.eeworm.com/read/315278/13547333
java arraygrowtest.java
/**
* @version 1.00 11 Mar 1997
* @author Cay Horstmann
*/
import java.lang.reflect.*;
import corejava.*;
public class ArrayGrowTest
{ public static void main(String[] args)
{ int[