{"id":6590,"date":"2024-03-21T19:01:01","date_gmt":"2024-03-21T11:01:01","guid":{"rendered":""},"modified":"2024-03-21T19:01:01","modified_gmt":"2024-03-21T11:01:01","slug":"java\u591a\u6001\u4f18\u5316\u591a\u4e2aif_\u8111\u58f3\u75bc\uff01\u4ee3\u7801\u4e2d\u90a3\u4e48\u591a\u201c\u70e6\u4eba\u201d\u7684if else","status":"publish","type":"post","link":"https:\/\/mushiming.com\/6590.html","title":{"rendered":"java\u591a\u6001\u4f18\u5316\u591a\u4e2aif_\u8111\u58f3\u75bc\uff01\u4ee3\u7801\u4e2d\u90a3\u4e48\u591a\u201c\u70e6\u4eba\u201d\u7684if else"},"content":{"rendered":"
\n

if else \u662f\u6211\u4eec\u5199\u4ee3\u7801\u65f6\uff0c\u4f7f\u7528\u9891\u7387\u6700\u9ad8\u7684\u5173\u952e\u8bcd\u4e4b\u4e00\uff0c\u7136\u800c\u6709\u65f6\u8fc7\u591a\u7684 if else \u4f1a\u8ba9\u6211\u4eec\u611f\u5230\u8111\u58f3\u75bc\u3002<\/p>\n

\"java\u591a\u6001\u4f18\u5316\u591a\u4e2aif_\u8111\u58f3\u75bc\uff01\u4ee3\u7801\u4e2d\u90a3\u4e48\u591a\u201c\u70e6\u4eba\u201d\u7684if<\/p>\n

\u56fe\u7247\u6765\u81ea Pexels<\/p>\n

\u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2a\u4f2a\u4ee3\u7801\uff1a<\/p>\n

\"java\u591a\u6001\u4f18\u5316\u591a\u4e2aif_\u8111\u58f3\u75bc\uff01\u4ee3\u7801\u4e2d\u90a3\u4e48\u591a\u201c\u70e6\u4eba\u201d\u7684if<\/p>\n

\u662f\u4e0d\u662f\u5f88\u5d29\u6e83?\u867d\u7136\u4ed6\u662f\u4f2a\u4ee3\u7801\uff0c\u5e76\u4e14\u770b\u8d77\u6765\u4e5f\u5f88\u5938\u5f20\uff0c\u4f46\u5728\u73b0\u5b9e\u4e2d\uff0c\u5f53\u6211\u4eec\u65e0\u6570\u6b21 Review \u522b\u4eba\u4ee3\u7801\u65f6\uff0c\u90fd\u4f1a\u53d1\u73b0\u7c7b\u4f3c\u7684\u573a\u666f\u3002<\/p>\n

\u90a3\u4e48\u6211\u4eec\u672c\u6587\u5c31\u6765\u8be6\u7ec6\u804a\u804a\uff0c\u6709\u6ca1\u6709\u4ec0\u4e48\u65b9\u6cd5\u53ef\u4ee5\u8ba9\u6211\u4eec\u907f\u514d\u6765\u5199\u8fd9\u4e48\u591a\u7684 if else \u5462?<\/p>\n

\u6211\u4eec\u672c\u6587\u63d0\u4f9b\u4e86 9 \u79cd\u65b9\u6cd5\u6765\u89e3\u51b3\u6389\u90a3\u4e9b\u201c\u70e6\u4eba\u201d\u7684 if else\uff0c\u4e00\u8d77\u6765\u770b\u5427\u3002<\/p>\n

1.\u4f7f\u7528 return<\/p>\n

\u6211\u4eec\u4f7f\u7528 return \u53bb\u6389\u591a\u4f59\u7684 else\uff0c\u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

if (\"java\".equals(str)) {
\n <\/p>\n

\/\/ \u4e1a\u52a1\u4ee3\u7801......<\/p>\n

} else{
\n <\/p>\n

return;<\/p>\n

}<\/p>\n

\u4f18\u5316\u540e\u4ee3\u7801\uff1a<\/p>\n

if (!\"java\".equals(str)) {
\n <\/p>\n

return;<\/p>\n

}<\/p>\n

\/\/ \u4e1a\u52a1\u4ee3\u7801......<\/p>\n

\u8fd9\u6837\u770b\u8d77\u6765\u5c31\u4f1a\u8212\u670d\u5f88\u591a\uff0c\u867d\u7136\u76f8\u5dee\u53ea\u6709\u4e00\u884c\u4ee3\u7801\uff0c\u4f46\u771f\u6b63\u7684\u9ad8\u624b\u548c\u666e\u901a\u4eba\u4e4b\u95f4\u7684\u5dee\u8ddd\u5c31\u662f\u4ece\u8fd9\u4e00\u884c\u884c\u4ee3\u7801\u4e2d\u4f53\u73b0\u51fa\u6765\u7684\u3002<\/p>\n

\u201c\u52ff\u4ee5\u5584\u5c0f\u800c\u4e0d\u4e3a\uff0c\u52ff\u4ee5\u6076\u5c0f\u800c\u4e3a\u4e4b\u201d\uff0c\u201c\u5343\u91cc\u4e4b\u5824\uff0c\u6e83\u4e8e\u8681\u7a74\u201d\uff0c\u8bf4\u7684\u90fd\u662f\u540c\u6837\u7684\u9053\u7406\u3002<\/p>\n

2.\u4f7f\u7528 Map<\/p>\n

\u4f7f\u7528 Map \u6570\u7ec4\uff0c\u628a\u76f8\u5173\u7684\u5224\u65ad\u4fe1\u606f\uff0c\u5b9a\u4e49\u4e3a\u5143\u7d20\u4fe1\u606f\u53ef\u4ee5\u76f4\u63a5\u907f\u514d if else \u5224\u65ad\uff0c\u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

if (t == 1) {
\n <\/p>\n

type = \"name\";<\/p>\n

} elseif (t == 2) {
\n <\/p>\n

type = \"id\";<\/p>\n

} elseif (t == 3) {
\n <\/p>\n

type = \"mobile\";<\/p>\n

}<\/p>\n

\u6211\u4eec\u5148\u5b9a\u4e49\u4e00\u4e2a Map \u6570\u7ec4\uff0c\u628a\u76f8\u5173\u5224\u65ad\u4fe1\u606f\u5b58\u50a8\u8d77\u6765\uff1a<\/p>\n

Map typeMap = new HashMap<>();<\/p>\n

typeMap.put(1, \"name\");<\/p>\n

typeMap.put(2, \"id\");<\/p>\n

typeMap.put(3, \"mobile\");<\/p>\n

\u4e4b\u524d\u7684\u5224\u65ad\u8bed\u53e5\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4e00\u884c\u4ee3\u7801\u4ee3\u66ff\u4e86\uff1a<\/p>\n

type = typeMap.get(t);<\/p>\n

3.\u4f7f\u7528\u4e09\u5143\u8fd0\u7b97\u7b26<\/p>\n

\u4e09\u5143\u8fd0\u7b97\u7b26\u4e5f\u53eb\u4e09\u5143\u8868\u8fbe\u5f0f\u6216\u8005\u4e09\u76ee\u8fd0\u7b97\u7b26\/\u8868\u8fbe\u5f0f\uff0c\u4e0d\u8fc7\u4ee3\u8868\u7684\u90fd\u662f\u4e00\u4e2a\u610f\u601d\uff0c\u4f18\u5316\u4ee3\u7801\u5982\u4e0b\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

Integerscore = 81;<\/p>\n

if (score > 80) {
\n <\/p>\n

score = 100;<\/p>\n

} else{
\n <\/p>\n

score = 60;<\/p>\n

}<\/p>\n

\u4f18\u5316\u540e\u4ee3\u7801\uff1a<\/p>\n

score = score > 80 ? 100 : 60;<\/p>\n

4.\u5408\u5e76\u6761\u4ef6\u8868\u8fbe\u5f0f<\/p>\n

\u5728\u9879\u76ee\u4e2d\u6709\u4e9b\u903b\u8f91\u5224\u65ad\u662f\u53ef\u4ee5\u901a\u8fc7\u68b3\u7406\u548c\u5f52\u7eb3\uff0c\u53d8\u66f4\u4e3a\u66f4\u7b80\u5355\u6613\u61c2\u7684\u903b\u8f91\u5224\u65ad\u4ee3\u7801\uff0c\u5982\u4e0b\u6240\u793a\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

String city =\"\u897f\u5b89\";<\/p>\n

String area = \"029\";<\/p>\n

String province = \"\u9655\u897f\";<\/p>\n

if (\"\u897f\u5b89\".equals(city)) {
\n <\/p>\n

return\"xi'an\";<\/p>\n

}<\/p>\n

if (\"029\".equals(area)) {
\n <\/p>\n

return\"xi'an\";<\/p>\n

}<\/p>\n

if (\"\u9655\u897f\".equals(province)){
\n <\/p>\n

return\"xi'an\";<\/p>\n

}<\/p>\n

\u4f18\u5316\u540e\u4ee3\u7801\uff1a<\/p>\n

if (\"\u897f\u5b89\".equals(city) ||\"029\".equals(area) ||\"\u9655\u897f\".equals(province)){
\n <\/p>\n

return\"xi'an\";<\/p>\n

}<\/p>\n

5.\u4f7f\u7528\u679a\u4e3e<\/p>\n

JDK 1.5 \u4e2d\u5f15\u5165\u4e86\u65b0\u7684\u7c7b\u578b\u2014\u2014\u679a\u4e3e(enum)\uff0c\u6211\u4eec\u4f7f\u7528\u5b83\u53ef\u4ee5\u5b8c\u6210\u5f88\u591a\u529f\u80fd\uff0c\u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2a\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

IntegertypeId = 0;<\/p>\n

String type = \"Name\";<\/p>\n

if (\"Name\".equals(type)) {
\n <\/p>\n

typeId = 1;<\/p>\n

} elseif (\"Age\".equals(type)) {
\n <\/p>\n

typeId = 2;<\/p>\n

} elseif (\"Address\".equals(type)) {
\n <\/p>\n

typeId = 3;<\/p>\n

}<\/p>\n

\u4f18\u5316\u65f6\uff0c\u6211\u4eec\u5148\u6765\u5b9a\u4e49\u4e00\u4e2a\u679a\u4e3e\uff1a<\/p>\n

publicenum TypeEnum {
\n <\/p>\n

Name(1), Age(2), Address(3);<\/p>\n

publicIntegertypeId;<\/p>\n

TypeEnum(IntegertypeId) {
\n <\/p>\n

this.typeId = typeId;<\/p>\n

}<\/p>\n

}<\/p>\n

\u4e4b\u524d\u7684 if else \u5224\u65ad\u5c31\u53ef\u4ee5\u88ab\u5982\u4e0b\u4e00\u884c\u4ee3\u7801\u6240\u66ff\u4ee3\u4e86\uff1a<\/p>\n

typeId = TypeEnum.valueOf(\"Name\").typeId;<\/p>\n

6.\u4f7f\u7528 Optional<\/p>\n

\u4ece JDK 1.8 \u5f00\u59cb\u5f15\u5165 Optional \u7c7b\uff0c\u5728 JDK 9 \u65f6\u5bf9 Optional \u7c7b\u8fdb\u884c\u4e86\u6539\u8fdb\uff0c\u589e\u52a0\u4e86 ifPresentOrElse() \u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u501f\u52a9\u5b83\uff0c\u6765\u6d88\u9664 if else \u7684\u5224\u65ad\uff0c\u4f7f\u7528\u5982\u4e0b\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

String str =\"java\";<\/p>\n

if (str == null) {
\n <\/p>\n

System.out.println(\"Null\");<\/p>\n

} else{
\n <\/p>\n

System.out.println(str);<\/p>\n

}<\/p>\n

\u4f18\u5316\u540e\u4ee3\u7801\uff1a<\/p>\n

Optional opt = Optional.of(\"java\");<\/p>\n

opt.ifPresentOrElse(v -><\/p>\n

System.out.println(v), () -> System.out.println(\"Null\"));<\/p>\n

\u5c0f\u8d34\u58eb\uff1a\u6ce8\u610f\u8fd0\u884c\u7248\u672c\uff0c\u5fc5\u987b\u662f JDK 9+ \u624d\u884c\u3002<\/p>\n

7.\u68b3\u7406\u4f18\u5316\u5224\u65ad\u903b\u8f91<\/p>\n

\u548c\u7b2c 4 \u70b9\u6bd4\u8f83\u7c7b\u4f3c\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5206\u6790 if else \u7684\u903b\u8f91\u5224\u65ad\u8bed\u4e49\uff0c\u5199\u51fa\u66f4\u52a0\u6613\u61c2\u7684\u4ee3\u7801\uff0c\u4f8b\u5982\u4ee5\u4e0b\u8fd9\u4e2a\u5d4c\u5957\u5224\u65ad\u7684\u4f18\u5316\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

\/\/ \u5e74\u9f84\u5927\u4e8e 18<\/p>\n

if (age > 18) {
\n <\/p>\n

\/\/ \u5de5\u8d44\u5927\u4e8e 5000<\/p>\n

if (salary > 5000) {
\n <\/p>\n

\/\/ \u662f\u5426\u6f02\u4eae<\/p>\n

if (pretty == true) {
\n <\/p>\n

returntrue;<\/p>\n

}<\/p>\n

}<\/p>\n

}<\/p>\n

returnfalse;<\/p>\n

\u4f18\u5316\u540e\u4ee3\u7801\uff1a<\/p>\n

if (age <\/p>\n

returnfalse;<\/p>\n

}<\/p>\n

if (salary <\/p>\n

returnfalse;<\/p>\n

}<\/p>\n

returnpretty;<\/p>\n

\u6211\u4eec\u9700\u8981\u5c3d\u91cf\u628a\u8868\u8fbe\u5f0f\u4e2d\u7684\u5305\u542b\u5173\u7cfb\u6539\u4e3a\u5e73\u884c\u5173\u7cfb\uff0c\u8fd9\u6837\u4ee3\u7801\u53ef\u8bfb\u6027\u66f4\u9ad8\uff0c\u903b\u8f91\u66f4\u6e05\u6670\u3002<\/p>\n

8.\u4f7f\u7528\u591a\u6001<\/p>\n

\u7ee7\u627f\u3001\u5c01\u88c5\u548c\u591a\u6001\u662f OOP(\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b)\u7684\u91cd\u8981\u601d\u60f3\uff0c\u672c\u6587\u6211\u4eec\u4f7f\u7528\u591a\u6001\u7684\u601d\u60f3\uff0c\u63d0\u4f9b\u4e00\u79cd\u53bb\u9664 if else \u65b9\u6cd5\u3002<\/p>\n

\u4f18\u5316\u524d\u4ee3\u7801\uff1a<\/p>\n

IntegertypeId = 0;<\/p>\n

String type = \"Name\";<\/p>\n

if (\"Name\".equals(type)) {
\n <\/p>\n

typeId = 1;<\/p>\n

} elseif (\"Age\".equals(type)) {
\n <\/p>\n

typeId = 2;<\/p>\n

} elseif (\"Address\".equals(type)) {
\n <\/p>\n

typeId = 3;<\/p>\n

}<\/p>\n

\u4f7f\u7528\u591a\u6001\uff0c\u6211\u4eec\u5148\u5b9a\u4e49\u4e00\u4e2a\u63a5\u53e3\uff0c\u5728\u63a5\u53e3\u4e2d\u58f0\u660e\u4e00\u4e2a\u516c\u5171\u8fd4\u56de typeId \u7684\u65b9\u6cd5\uff0c\u5728\u6dfb\u52a0\u4e09\u4e2a\u5b50\u7c7b\u5206\u522b\u5b9e\u73b0\u8fd9\u4e09\u4e2a\u5b50\u7c7b\u3002<\/p>\n

\u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n

publicinterface IType {
\n <\/p>\n

publicIntegergetType();<\/p>\n

}<\/p>\n

publicclassNameimplements IType {
\n <\/p>\n

@Override<\/p>\n

publicIntegergetType() {
\n <\/p>\n

return1;<\/p>\n

}<\/p>\n

}<\/p>\n

publicclass Age implements IType {
\n <\/p>\n

@Override<\/p>\n

publicIntegergetType() {
\n <\/p>\n

return2;<\/p>\n

}<\/p>\n

}<\/p>\n

publicclass Address implements IType {
\n <\/p>\n

@Override<\/p>\n

publicIntegergetType() {
\n <\/p>\n

return3;<\/p>\n

}<\/p>\n

}<\/p>\n

\u6ce8\u610f\uff1a\u4e3a\u4e86\u7b80\u4fbf\u6211\u4eec\u8fd9\u91cc\u628a\u7c7b\u548c\u63a5\u53e3\u653e\u5230\u4e86\u4e00\u4e2a\u4ee3\u7801\u5757\u4e2d\uff0c\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\u5e94\u8be5\u5206\u522b\u521b\u5efa\u4e00\u4e2a\u63a5\u53e3\u548c\u4e09\u4e2a\u7c7b\u5206\u522b\u5b58\u50a8\u3002<\/p>\n

\u6b64\u65f6\uff0c\u6211\u4eec\u4e4b\u524d\u7684 if else \u5224\u65ad\u5c31\u53ef\u4ee5\u6539\u4e3a\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n

IType itype = (IType) Class.forName(\"com.example.\"+ type).newInstance();<\/p>\n

IntegertypeId = itype.getType();<\/p>\n

\u6709\u4eba\u53ef\u80fd\u4f1a\u8bf4\uff0c\u8fd9\u6837\u53cd\u800c\u8ba9\u4ee3\u7801\u66f4\u52a0\u590d\u6742\u4e86\uff0c\u6b64\u53ef\u8c13\u201c\u6740\u9e21\u7109\u7528\u5bb0\u725b\u5200\u201d\u7684\u5178\u578b\u8303\u4f8b\u4e86\u3002<\/p>\n

\u8fd9\u91cc\u4f5c\u8005\u53ea\u662f\u63d0\u4f9b\u4e00\u79cd\u5b9e\u73b0\u601d\u8def\u548c\u63d0\u4f9b\u4e86\u4e00\u4e9b\u7b80\u6613\u7248\u7684\u4ee3\u7801\uff0c\u4ee5\u4f9b\u5f00\u53d1\u8005\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u591a\u4e00\u79cd\u601d\u8def\u548c\u9009\u62e9\uff0c\u5177\u4f53\u7528\u4e0d\u7528\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u6765\u5b9a\u4e86\u3002\u7075\u6d3b\u53d8\u901a\uff0c\u4e3e\u4e00\u53cd\u4e09\uff0c\u624d\u662f\u5f00\u53d1\u7684\u4e0a\u4e58\u5fc3\u6cd5\u3002<\/p>\n

9.\u9009\u62e9\u6027\u7684\u4f7f\u7528 switch<\/p>\n

\u5f88\u591a\u4eba\u90fd\u641e\u4e0d\u61c2 switch \u548c if else \u7684\u4f7f\u7528\u573a\u666f\uff0c\u4f46\u5728\u4e24\u8005\u90fd\u80fd\u4f7f\u7528\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5c3d\u91cf\u4f7f\u7528 switch\uff0c\u56e0\u4e3a switch \u5728\u5e38\u91cf\u5206\u652f\u9009\u62e9\u65f6\uff0cswitch \u6027\u80fd\u4f1a\u6bd4 if else \u9ad8\u3002<\/p>\n

if else \u5224\u65ad\u4ee3\u7801\uff1a<\/p>\n

if (\"add\".equals(cmd)) {
\n <\/p>\n

result = n1 + n2;<\/p>\n

} elseif (\"subtract\".equals(cmd)) {
\n <\/p>\n

result = n1 - n2;<\/p>\n

} elseif (\"multiply\".equals(cmd)) {
\n <\/p>\n

result = n1 * n2;<\/p>\n

} elseif (\"divide\".equals(cmd)) {
\n <\/p>\n

result = n1 \/ n2;<\/p>\n

} elseif (\"modulo\".equals(cmd)) {
\n <\/p>\n

result = n1 % n2;<\/p>\n

}<\/p>\n

switch \u4ee3\u7801\uff1a<\/p>\n

switch (cmd) {
\n <\/p>\n

case\"add\":<\/p>\n

result = n1 + n2;<\/p>\n

break;<\/p>\n

case\"subtract\":<\/p>\n

result = n1 - n2;<\/p>\n

break;<\/p>\n

case\"multiply\":<\/p>\n

result = n1 * n2;<\/p>\n

break;<\/p>\n

case\"divide\":<\/p>\n

result = n1 \/ n2;<\/p>\n

break;<\/p>\n

case\"modulo\":<\/p>\n

result = n1 % n2;<\/p>\n

break;<\/p>\n

}<\/p>\n

\u5728 Java 14 \u53ef\u4f7f\u7528 switch \u4ee3\u7801\u5757\uff0c\u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n

\/\/ java 14<\/p>\n

switch (cmd) {
\n <\/p>\n

case\"add\"-> {
\n <\/p>\n

result = n1 + n2;<\/p>\n

}<\/p>\n

case\"subtract\"-> {
\n <\/p>\n

result = n1 - n2;<\/p>\n

}<\/p>\n

case\"multiply\"-> {
\n <\/p>\n

result = n1 * n2;<\/p>\n

}<\/p>\n

case\"divide\"-> {
\n <\/p>\n

result = n1 \/ n2;<\/p>\n

}<\/p>\n

case\"modulo\"-> {
\n <\/p>\n

result = n1 % n2;<\/p>\n

}<\/p>\n

}<\/p>\n

10.\u603b\u7ed3<\/p>\n

\u4e1a\u7cbe\u4e8e\u52e4\u8352\u4e8e\u5b09\uff0c\u884c\u6210\u4e8e\u601d\u6bc1\u4e8e\u968f\u3002\u7f16\u7a0b\u662f\u4e00\u95e8\u624b\u827a\uff0c\u66f4\u662f\u4e00\u79cd\u4e50\u8da3\uff0c\u54c8\u4f5b\u6700\u53d7\u6b22\u8fce\u7684\u5e78\u798f\u8bfe\u300a\u5e78\u798f\u7684\u65b9\u6cd5\u300b\u4e00\u4e66\u4e2d\u5199\u5230\u201c\u8ba9\u6211\u4eec\u80fd\u611f\u5230\u5feb\u4e50\u548c\u5e78\u798f\u7684\u65b9\u6cd5\uff0c\u65e0\u975e\u662f\u5168\u8eab\u5fc3\u7684\u6295\u5165\u5230\u81ea\u5df1\u7a0d\u5fae\u52aa\u529b\u4e00\u4e0b\u5c31\u80fd\u5b8c\u6210\u7684\u5de5\u4f5c\u4e2d\u53bb\u201d!<\/p>\n

\u662f\u554a\uff0c\u592a\u7b80\u5355\u7684\u4e8b\u60c5\u901a\u5e38\u65e0\u6cd5\u8c03\u52a8\u8d77\u6211\u4eec\u7684\u5174\u8da3\uff0c\u800c\u592a\u96be\u7684\u5de5\u4f5c\u53c8\u4f1a\u8ba9\u6211\u4eec\u4e27\u5931\u4fe1\u5fc3\uff0c\u53ea\u6709\u90a3\u4e9b\u770b\u4f3c\u5f88\u96be\u4f46\u7a0d\u5fae\u52aa\u529b\u4e00\u70b9\u5c31\u80fd\u5b8c\u6210\u7684\u4e8b\u60c5\uff0c\u624d\u4f1a\u7ed9\u6211\u4eec\u5e26\u6765\u5de8\u5927\u7684\u5feb\u4e50\u3002<\/p>\n

\u6211\u60f3\u7f16\u7a0b\u4e5f\u662f\u4e00\u6837\uff0c\u666e\u901a\u7684\u65b9\u6cd5\u6bcf\u4e2a\u4eba\u90fd\u4f1a\u5199\uff0c\u7136\u800c\u4f18\u96c5\u4e00\u70b9\u7684\u4ee3\u7801\u4e0d\u662f\u6240\u6709\u4eba\u90fd\u80fd\u5199\u5f97\u51fa\u6765\uff0c\u800c\u672c\u6587\u6070\u6070\u662f\u63d0\u4f9b\u4e86\u5199\u51fa\u4f18\u96c5\u4ee3\u7801\u7684\u4e00\u4e9b\u601d\u8def\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u548c\u542f\u53d1\u5230\u4f60\u3002<\/p>\n

\u53c2\u8003&\u9e23\u8c22\uff1a<\/p>\n

https:\/\/www.tuicool.com\/wx\/2euqQvZ<\/p>\n

http:\/\/www.blogjava.net\/xzclog\/archive\/2006\/10\/16\/75399.html<\/p>\n

\u4f5c\u8005\uff1a\u738b\u78ca<\/p>\n

\u7f16\u8f91\uff1a\u9676\u5bb6\u9f99<\/p>\n

\u51fa\u5904\uff1a\u8f6c\u8f7d\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7Java\u4e2d\u6587\u793e\u7fa4(ID\uff1ajavacn666)<\/p>\n

\n

\u3010\u7f16\u8f91\u63a8\u8350\u3011<\/p>\n

\u3010\u8d23\u4efb\u7f16\u8f91\uff1a\u6b66\u6653\u71d5 TEL\uff1a(010)68476606\u3011<\/p>\n

\u70b9\u8d5e 0<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"java\u591a\u6001\u4f18\u5316\u591a\u4e2aif_\u8111\u58f3\u75bc\uff01\u4ee3\u7801\u4e2d\u90a3\u4e48\u591a\u201c\u70e6\u4eba\u201d\u7684if elseifelse\u662f\u6211\u4eec\u5199\u4ee3\u7801\u65f6\uff0c\u4f7f\u7528\u9891\u7387\u6700\u9ad8\u7684\u5173\u952e\u8bcd\u4e4b\u4e00\uff0c\u7136\u800c\u6709\u65f6\u8fc7\u591a\u7684i...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/6590"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=6590"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/6590\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=6590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=6590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=6590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}