This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| /** | |
| * remove elements from ArrayList using loop | |
| * | |
| * @author: liudong | |
| * @date: 2019/6/24 | |
| * @java-version: 11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Objects; | |
| /** | |
| * use Objects.equals | |
| * | |
| * @author: liudong | |
| * @date: 2019/6/28 | |
| * @java-version: 11 | |
| */ | |
| public class JDK7Equals { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.lang3.StringUtils; | |
| /** | |
| * use StringUtils | |
| * jar: org.apache.commons -> commons-lang3 | |
| * | |
| * @author: liudong | |
| * @date: 2019/6/28 | |
| * @java-version: 11 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package xyz.liudong; | |
| import xyz.liudong.nonspringbean.NONSpringBean; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| /** | |
| * Application | |
| * | |
| * @author: liudong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package xyz.liudong.entity; | |
| import java.util.List; | |
| /** | |
| * department entity | |
| * | |
| * @author: liudong | |
| * @date: 2019/7/30 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package xyz.liudong; | |
| import java.util.Objects; | |
| /** | |
| * create custom functional interface | |
| * | |
| * @author: liudong | |
| * @date: @date: 2019/8/2 | |
| * @java-version: 11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package xyz.liudong; | |
| /** | |
| * break multilevel loop | |
| * | |
| * @author: liudong | |
| * @date: 2019/7/15 | |
| * @java-version: 11 | |
| */ | |
| public class BreakLoop { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package xyz.liudong; | |
| import xyz.liudong.entity.User; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.TreeSet; | |
| import java.util.stream.Collectors; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package xyz.liudong; | |
| import xyz.liudong.entity.User; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Objects; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package xyz.liudong; | |
| import xyz.liudong.entity.User; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.stream.Collectors; | |
| /** |
OlderNewer