App下載

詞條

大約有 5,000 項(xiàng)符合查詢結(jié)果 ,庫(kù)內(nèi)數(shù)據(jù)總量為 78,250 項(xiàng)。(搜索耗時(shí):0.0065秒)

3781.main

**main** 主方法: ```java public class Test { public static void main(String[] args) { //我的代碼 } } ```

http://www.o2fo.com/toniko/toniko-nrv8330b.html

3782.Entry

**Entry** 可以用于遍歷Map,以HashMap為例: ```java HashMap<String, Integer> hashMap = new HashMap<>(); hashMap.put("a", 1); hashMap.put("b", 2); hashMap.put("c", 3); Set<Entry<String, Integer>> eSet = hashMap.entrySet(); for(Entry<String, Integer> entry : eSe...

http://www.o2fo.com/toniko/toniko-5pkv330i.html

3783.創(chuàng)建線程1--繼承Thread

```java public class MyThread extends Thread { @Override public void run() { // TODO Auto-generated method stub for(int i = 0; i < 30; i++) { System.out.println(Thread.currentThread().getName()+":i="+i); } } public static void main(String[] args) { new MyThread().start(); new MyThread().start(); ...

http://www.o2fo.com/toniko/toniko-c6mt3382.html

3784.線程的阻塞

```java 1.join():Thread對(duì)象中調(diào)用。 如果在a線程中調(diào)用b(Thread)對(duì)象的join方法,那么a線程被阻塞,等待b線程運(yùn)行完畢再運(yùn)行a線程。 2.yield():Thread的靜態(tài)方法。 哪個(gè)線程調(diào)用此方法,哪個(gè)線程就會(huì)讓出cpu的資源,但有可能又得...

http://www.o2fo.com/toniko/toniko-2o7k3387.html

3785.死鎖

...,兩者都拿著各自的鎖不松手。造成死鎖,無(wú)輸出。 ```java public class MyThread{ public static void main(String[] args) throws InterruptedException { Object goods = new Object(); Object money = new Object(); Test1 t1 = new Test1(goods, money); Test2 t2 = new Test2(goods, money); ...

http://www.o2fo.com/toniko/toniko-63ao338j.html

3786.單目運(yùn)算符

多個(gè)單目運(yùn)算符的計(jì)算: ```java int i = 1; int j = i++ + ++i + i++; // 1 + 3 + 3 // 2 4 System.out.println(i); System.out.println(j); 運(yùn)算結(jié)果: 4 7 ```

http://www.o2fo.com/toniko/toniko-ryxe33a6.html

3787.char

...**英文字母和中文漢字在不同字符集編碼下的字節(jié)數(shù):** ```java 英文字母: 字節(jié)數(shù) : 1;編碼:GB2312 字節(jié)數(shù) : 1;編碼:GBK 字節(jié)數(shù) : 1;編碼:GB18030 字節(jié)數(shù) : 1;編碼:ISO-8859-1 字節(jié)數(shù) : 1;編碼:UTF-8 字節(jié)數(shù) : 4;編碼:UTF-16 字節(jié)數(shù) : 2;編碼:...

http://www.o2fo.com/toniko/toniko-ujkr33aj.html

3788.OkHttps 請(qǐng)求方法(GET|POST|PUT|DELETE)

...tpResult`,而異步`HttpTask`的這些方法返回一個(gè)`HttpCall`。 ```java HttpResult res1 = http.sync("/users").get(); // 同步 GET HttpResult res2 = http.sync("/users")post(); // 同步 POST HttpResult res3 = http.sync("/users/1").put(); // 同步 PUT HttpResult res4 = http.sync("/...

http://www.o2fo.com/okhttps/okhttps-t2ad36zh.html

3789.OkHttps 回調(diào)函數(shù)

  只有異步請(qǐng)求才可以設(shè)置回調(diào)函數(shù): ```java http.async("/users/{id}") // http://api.demo.com/users/1 .addPathParam("id", 1) .setOnResponse((HttpResult result) -> { // 響應(yīng)回調(diào) }) .setOnException((IOException e) -> { // 異?;卣{(diào) }) .setOnComplete((State st...

http://www.o2fo.com/okhttps/okhttps-53ux36zi.html

3790.OkHttps 回調(diào)執(zhí)行器

...函數(shù)都在UI線程執(zhí)行,則可以在構(gòu)建`HTTP`時(shí)配置如下: ```java HTTP http = HTTP.builder() .callbackExecutor((Runnable run) -> { runOnUiThread(run); // 在UI線程執(zhí)行 }) .build(); ```   該配置默認(rèn) **影響所有回調(diào)**。 --- 如果覺(jué)得 OkHttps 好用,...

http://www.o2fo.com/okhttps/okhttps-c8xy36zo.html

抱歉,暫時(shí)沒(méi)有相關(guān)的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒(méi)有相關(guān)的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

3781.main

**main** 主方法: ```java public class Test { public static void main(String[] args) { //我的代碼 } } ```

http://www.o2fo.com/toniko/toniko-nrv8330b.html

3782.Entry

**Entry** 可以用于遍歷Map,以HashMap為例: ```java HashMap<String, Integer> hashMap = new HashMap<>(); hashMap.put("a", 1); hashMap.put("b", 2); hashMap.put("c", 3); Set<Entry<String, Integer>> eSet = hashMap.entrySet(); for(Entry<String, Integer> entry : eSe...

http://www.o2fo.com/toniko/toniko-5pkv330i.html

3783.創(chuàng)建線程1--繼承Thread

```java public class MyThread extends Thread { @Override public void run() { // TODO Auto-generated method stub for(int i = 0; i < 30; i++) { System.out.println(Thread.currentThread().getName()+":i="+i); } } public static void main(String[] args) { new MyThread().start(); new MyThread().start(); ...

http://www.o2fo.com/toniko/toniko-c6mt3382.html

3784.線程的阻塞

```java 1.join():Thread對(duì)象中調(diào)用。 如果在a線程中調(diào)用b(Thread)對(duì)象的join方法,那么a線程被阻塞,等待b線程運(yùn)行完畢再運(yùn)行a線程。 2.yield():Thread的靜態(tài)方法。 哪個(gè)線程調(diào)用此方法,哪個(gè)線程就會(huì)讓出cpu的資源,但有可能又得...

http://www.o2fo.com/toniko/toniko-2o7k3387.html

3785.死鎖

...,兩者都拿著各自的鎖不松手。造成死鎖,無(wú)輸出。 ```java public class MyThread{ public static void main(String[] args) throws InterruptedException { Object goods = new Object(); Object money = new Object(); Test1 t1 = new Test1(goods, money); Test2 t2 = new Test2(goods, money); ...

http://www.o2fo.com/toniko/toniko-63ao338j.html

3786.單目運(yùn)算符

多個(gè)單目運(yùn)算符的計(jì)算: ```java int i = 1; int j = i++ + ++i + i++; // 1 + 3 + 3 // 2 4 System.out.println(i); System.out.println(j); 運(yùn)算結(jié)果: 4 7 ```

http://www.o2fo.com/toniko/toniko-ryxe33a6.html

3787.char

...**英文字母和中文漢字在不同字符集編碼下的字節(jié)數(shù):** ```java 英文字母: 字節(jié)數(shù) : 1;編碼:GB2312 字節(jié)數(shù) : 1;編碼:GBK 字節(jié)數(shù) : 1;編碼:GB18030 字節(jié)數(shù) : 1;編碼:ISO-8859-1 字節(jié)數(shù) : 1;編碼:UTF-8 字節(jié)數(shù) : 4;編碼:UTF-16 字節(jié)數(shù) : 2;編碼:...

http://www.o2fo.com/toniko/toniko-ujkr33aj.html

3788.OkHttps 請(qǐng)求方法(GET|POST|PUT|DELETE)

...tpResult`,而異步`HttpTask`的這些方法返回一個(gè)`HttpCall`。 ```java HttpResult res1 = http.sync("/users").get(); // 同步 GET HttpResult res2 = http.sync("/users")post(); // 同步 POST HttpResult res3 = http.sync("/users/1").put(); // 同步 PUT HttpResult res4 = http.sync("/...

http://www.o2fo.com/okhttps/okhttps-t2ad36zh.html

3789.OkHttps 回調(diào)函數(shù)

  只有異步請(qǐng)求才可以設(shè)置回調(diào)函數(shù): ```java http.async("/users/{id}") // http://api.demo.com/users/1 .addPathParam("id", 1) .setOnResponse((HttpResult result) -> { // 響應(yīng)回調(diào) }) .setOnException((IOException e) -> { // 異?;卣{(diào) }) .setOnComplete((State st...

http://www.o2fo.com/okhttps/okhttps-53ux36zi.html

3790.OkHttps 回調(diào)執(zhí)行器

...函數(shù)都在UI線程執(zhí)行,則可以在構(gòu)建`HTTP`時(shí)配置如下: ```java HTTP http = HTTP.builder() .callbackExecutor((Runnable run) -> { runOnUiThread(run); // 在UI線程執(zhí)行 }) .build(); ```   該配置默認(rèn) **影響所有回調(diào)**。 --- 如果覺(jué)得 OkHttps 好用,...

http://www.o2fo.com/okhttps/okhttps-c8xy36zo.html

抱歉,暫時(shí)沒(méi)有相關(guān)的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程