Blog: mkyong (Yong Mook Kim)


222 blogs updated: 42 min. ago
Java - Check if a String contains another String
In Java, we can use String's .contains() or .indexOf() to check if a String contains another String. 1. String contains() 1.1 Case sensitive...
4
14-12-2018 21:51:15 mkyong (Yong Mook Kim) Beginners
Git pull - refusing to merge unrelated histories
Add --allow-unrelated-histori es to solve the Git fatal error "refusing to merge unrelated histories" Terminal $ git pull origin master From...
4
14-12-2018 15:40:50 mkyong (Yong Mook Kim) Beginners
Java BlockingQueue examples
In Java, we can use BlockingQueue to create a queue which shared by both producer and the consumer. Producer Generate data and put it into t...
7
13-12-2018 16:12:03 mkyong (Yong Mook Kim) Beginners
Java Semaphore examples
In Java, we can use Semaphore to limit the number of threads to access a certain resource. 1. What is Semaphore? In short, a semaphore maint...
6
08-12-2018 15:53:04 mkyong (Yong Mook Kim) Beginners
Java Sequence Generator Examples
An example to show you how to create a thread safe sequence generator. 1. SequenceGenerator SequenceGenerator.java package com.mkyong.concur...
6
07-12-2018 16:27:42 mkyong (Yong Mook Kim) Beginners
Java ExecutorService Examples
In Java, we can use ExecutorService to create a thread pool, and tracks the progress of the asynchronous tasks with Future. The ExecutorServ...
6
06-12-2018 08:21:47 mkyong (Yong Mook Kim) Beginners
Intellij IDEA - How to show method signature?
In IDEA, clicks on the method name, press CTRL + Q to show the method signature on a pop up. Alternatively, press CTRL + P to show the avail...
7
04-12-2018 14:17:34 mkyong (Yong Mook Kim) Beginners
Java ScheduledExecutorService Examples
In Java, we can use ScheduledExecutorService to run a task periodically or once time after a predefined delay by TimeUnit. 1. Run a Task Onc...
4
03-12-2018 10:50:18 mkyong (Yong Mook Kim) Beginners
Java Fork/Join Framework Examples
What is Fork/Join? Read this Java Fork/Join paper by Doug Lea The fork/join framework is available since Java 7, to make it easier to write ...
9
02-12-2018 13:43:00 mkyong (Yong Mook Kim) Beginners
Java Fibonacci examples
Fibonacci number Every number after the first two is the sum of the two preceding. Few Java examples to find the Fibonacci numbers. 1. Java ...
6
01-12-2018 14:10:49 mkyong (Yong Mook Kim) Beginners


© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení | Top SQL Blogs | monitored using: sitemonitoring

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.