???????Java???????
???????????? ???????[ 2014/7/11 10:49:33 ] ??????????????? java
?????????????????????????????????????????????
???????????
public interface CallBack {
/**
* ??л??????
* @param objects ?????????????????????????????
*/
public void execute(Object... objects );
}
???????????
/**
* ??????????????
*/
public class Local implements CallBack??Runnable{
private Remote remote;
/**
* ???????????
*/
private String message;
public Local(Remote remote?? String message) {
super();
this.remote = remote;
this.message = message;
}
/**
* ???????
*/
public void sendMessage()
{
/**???????????**/
System.out.println(Thread.currentThread().getName());
/**????????μ??????????**/
Thread thread = new Thread(this);
thread.start();
/**????????????**/
System.out.println("Message has been sent by Local~!");
}
/**
* ????????????????
*/
public void execute(Object... objects ) {
/**???????????**/
System.out.println(objects[0]);
/**???????????????????**/
System.out.println(Thread.currentThread().getName());
/**?ж????????????**/
Thread.interrupted();
}
public static void main(String[] args)
{
Local local = new Local(new Remote()??"Hello");
local.sendMessage();
}
public void run() {
remote.executeMessage(message?? this); //???????????綽??????綽??????????????????????????????????????????綽??????????????????
}
}
|
???????????????
/**
* ??????????????
*/
public class Remote {
/**
* ???????
* @param msg ????????
* @param callBack ?????????????
*/
public void executeMessage(String msg??CallBack callBack)
{
/**??????????????????????飬?????????????????**/
for(int i=0;i<1000000000;i++)
{
}
/**?????????????飬?????????????**/
System.out.println(msg);
System.out.println("I hava executed the message by Local");
/**??л??**/
callBack.execute(new String[]{"Nice to meet you~!"}); //?????????????????綽????
}
}
|
???????????????????????????????????????????????????á?
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????