代码搜索:getClass

找到约 825 项符合「getClass」的源代码

代码结果 825
www.eeworm.com/read/298117/7973100

java ttongxin.java

import java.awt.*; import java.applet.*; import java.util.*; public class Ttongxin extends Applet{ Applet ap,aps; Enumeration e; public void paint(Graphics g){ int i=70; ap=(Applet)getA
www.eeworm.com/read/145872/12698618

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/333003/12711533

java holders30.java

// generics/Holders30.java // TIJ4 Chapter Generics, Exercise 30, page 696 // Create a Holder for each of the primitive wrapper types, and show that // autoboxing and autounboxing works for the set
www.eeworm.com/read/333003/12711689

java ex8(3).java

// typeinfo/Ex8.java // TIJ4 Chapter Typeinfo, Exercise 8, page 562 // Write a method that takes an object and recursively prints all // the classes in that object's hierarchy. class A {} cl
www.eeworm.com/read/333003/12711755

java ex9(2).java

// typeinfo/Ex9.java // TIJ4 Chapter Typeinfo, Exercise 9, page 562 // Modify the previous exercise so that it uses Class.getDeclaredFields() // to also display information about the fields in a c
www.eeworm.com/read/333003/12712033

java ex11(5).java

// arrays/Ex11.java // TIJ4 Chapter Arrays, Exercise 11, page 774 // Show that autoboxing doesn't work with arrays. import static org.greggordon.tools.Print.*; public class Ex11 { public stati
www.eeworm.com/read/333003/12712090

java ex8(4).java

// arrays//Ex8.java // TIJ4 Chapter Arrays, Exercise 8, page 762 // Demonstrate the assertions in the previous paragraph. class A {} public class Ex8 { @SuppressWarnings("unchecked") T[
www.eeworm.com/read/332970/12714516

java ttongxin.java

import java.awt.*; import java.applet.*; import java.util.*; public class Ttongxin extends Applet{ Applet ap,aps; Enumeration e; public void paint(Graphics g){ int i=70; ap=(Applet)getA
www.eeworm.com/read/330149/12909248

java xfactory.java

public class XFactory { public X getClass(int index) { if (index == 1) return new XY(); else return new XZ(); } }
www.eeworm.com/read/329880/12928837

java sound.java

import java.applet.AudioClip; import javax.swing.JApplet; import java.net.URL; public class Sound { AudioClip bgAudio1,bgAudio2; private URL url1,url2; public Sound() { url1