Let’s consider the Windows batch script which calculates a number of mp3 files in the current folder.
Continue reading Windows batch script mp3 file count
Thread.sleep method is the most popular approach when a Java programmer wants to suspend the current thread for a specific time.
Continue reading Java Coding Tip – Thread.sleep
Let’s consider Java example how to call the HTTP GET method using standard java.net API.
Continue reading Java HttpUrlConnection GET request example
Recently, I often have to create new Java projects. Therefore, in order not to copy the same values from project to project, it was decided to write the common values in a separate post.
Let’s touch Java 8, Maven, Git.
Continue reading Default files and values for Java 8 Maven Project
By looking at the “classical” Bubble sort there can be found that the original algorithm is so unoptimized.
Continue reading Optimizing Bubble Sort in Java
Simple Java implementation of the Bubble sort algorithm.
Continue reading Bubble sort in Java
This post is about how to fix the error in Spring Data JPA – java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
Continue reading Spring Data JPA query with data manipulation fix
Let’s consider a java code for testing if a file is read-only and setting it writable if it is possible.
Continue reading Java check or set read only file
This is a simple Java implementation of Binary to Decimal number conversion.
Continue reading Binary to Decimal java conversion
Simple java implementation of “Fisher-Yates shuffle” algorithm with modification from Richard Durstenfeld. Also, this algorithm was popularized by Donald Knuth as “Algorithm P (Shuffling)” or “Knuth shuffle”.
Continue reading Fisher-Yates shuffle java example