Skip to content

Commit

Permalink
添加mysql.xmind
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokexiang committed Aug 25, 2021
1 parent b82a90b commit f8b3984
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package io.spring.common;

/**
* @author xiaokexiang
* @since 2021/8/25
* For循环break or continue
*/
public class LoopRetry {

public static void main(String[] args) {
breakRetry();
}

private static void continueRetry() {
retry:
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 5; j++) {
System.out.println("j: " + j);
if (j == 3) {
continue retry;
}
}
}
// 最终出现3次 0,1,2,3
System.out.println("ok");
}

private static void breakRetry() {
retry:
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 5; j++) {
System.out.println("j: " + j);
if (j == 3) {
break retry;
}
}
}
// 最终出现1次 0,1,2,3
System.out.println("ok");
}
}
File renamed without changes.
Binary file added xmind/mysql/2. 单表访问方式.xmind
Binary file not shown.
Binary file added xmind/mysql/3. 多表连接查询.xmind
Binary file not shown.
Binary file added xmind/mysql/4. 基于成本的优化.xmind
Binary file not shown.
Binary file added xmind/mysql/5. 基于规则的优化.xmind
Binary file not shown.
Binary file added xmind/mysql/6. Explain关键字.xmind
Binary file not shown.

0 comments on commit f8b3984

Please sign in to comment.