⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getinterfaces.java

📁 kaffe Java 解释器语言,源码,Java的子集系统,开放源代码
💻 JAVA
字号:
interface if0 {}interface if1 {}class cl implements if0, if1 {}class GetInterfaces {    public static void main(String argv[]) {	try {	    Class c = Class.forName("cl");	    Class interfaces[] = c.getInterfaces();	    // It's all done allready :-(	    System.out.println("Hello world!");	    for(int i=0; i<interfaces.length; i++) {		System.out.println("interface" + i + ": " + interfaces[i].getName());	    }	} catch (Exception e) {	    System.out.println("Exception caught: " + e.toString());	}    }}/* Expected Output:Hello world!interface0: if0interface1: if1*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -