Learn various ways to count how many spaces are in a string through examples
Kai Yuan has been a software developer for over 15 years. He builds enterprise Java applications in work. He has 20 years experience of Linux and is a big fan of the Vim editor. He is happy to help people at stackoverflow.com. He lives currently in Hamburg.
Here's what I've written (so far):
Learn what Git squashing is, talk about when we need to squash commits, and take a closer look at how to squash commits
Learn how to execute tests during a Maven build using the Maven surefire plugin
Learn how to temporarily disable the Javadoc generation in Maven builds.
Learn if java.sql.Connection implementations are thread-safe
Learn two approaches to start two threads simultaneously: using CountDownLatch and CyclicBarrier
Learn how to concatenate two arrays in Java using the standard Java API and commonly used libraries
Compare the Java Stack class and the Deque interface and learn why we should use Deque over Stack for LIFO stacks
We’ll discuss what “unchecked cast” compiler warning means, why we’re warned, and how to solve the problem
Take a deeper look at the “unchecked conversion” compiler warning message
Learn why the “java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to X” exception occurs and how to solve the problem
Learn the difference between mvn:package and spring-boot:repackage
Learn ways to list a JAR file’s content from the command-line
Take a closer look at the JDBC URL formats of several widely used databases: Oracle, MySQL, Microsoft SQL Server, and PostgreSQL
Learn various ways to remove the extension from a filename
Learn how to extend Enums in Java.
Take a closer look at Java’s AbstractMethodError and understand what it is and when it may happen
Learn how to get names of classes inside a given JAR file and how to load classes from a JAR file at runtime.
Learn how to get the HTTP port programmatically in a Spring Boot application
Learn the differences between calling the Object.getClass() method and using the .class syntax