package Test
import java
import mon
import java
public class H
public static void main(String [] args){
aas a= new ggg()
NNC e=new NNC(a)
e
}
}
/********************************************************
* 接口的回調的應用
**********************************************************/
interface aas{
public int d(int n)
}
class ggg implements aas{
public int d(int n) {
int b[]=new int[
b[
b[
b[
b[
Arrays
int min=b[
int max=b[
return max
}
}
class NNC{
private aas p; //接口回調
public NNC(aas p){
this
public void ee(){
System
int n=SystemIn
if(n<=
System
return ;}
int i=
while(n!=
n= p
i++;
System
}
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26759.html