-
Oracle PL/SQL CREATE function example
This article will help you to understand how to create a user defined function. It’s also known as stored function or user function.
Date: 2019-08-11 View: 1520
-
Java Selection sort example
Selection sort is an in-place comparison sort. It loops and find the first smallest value, swaps it with the first element; loop and find the second smallest value again, swaps it with the second element, repeats third, fourth, fifth smallest values and swaps it, until everything is in correct order.
Date: 2019-08-11 View: 1520
-
Python How to check if a file exists
In Python, we can use os.path.isfile() or pathlib.Path.is_file() (Python 3.4) to check if a file exists.
Date: 2019-08-11 View: 1520
-
Java Sequence Generator examples
An example to show you how to create a thread safe sequence generator.
Date: 2019-08-11 View: 1520
-
Python How to read a file into a list?
Python example to read a log file, line by line into a list.
Date: 2019-08-11 View: 1520
-
Java Files.walk examples
The Files.walk API is available in Java 8, it is recommended to use try-with-resources to close the Files.walk stream.
Date: 2019-08-11 View: 1520
-
Python How to list all files in a directory?
In Python, we can use os.walker or glob to create a find() like function to search or list files or folders in a specified directory and also it’s subdirectories.
Date: 2019-08-11 View: 1520
-
Java How to list all files in a directory?
Two Java examples to show you how to list files in a directory :
Date: 2019-08-11 View: 1520
-
Spring REST Validation Example
In this article, we will enhance the previous Spring REST Hello World example, by adding bean validation and custom validator.
Date: 2019-08-11 View: 1520
-
HikariPool-1 Connection is not available, request timed out after 30002ms.
After some SQL queries, the system is unable to get any connection from the HikariPool and prompts the following error message
Date: 2019-08-11 View: 1520
-
Spring Boot + Spring data JPA
In this tutorial, we will show you how to use Spring Boot + Spring data JPA to save data into an H2 in-memory database and how to also query the data.
Date: 2019-08-11 View: 1520
-
Java Files.readAllBytes example
In Java, we can use Files.readAllBytes to read a file.
Date: 2019-08-11 View: 1520
-
Java How to append text to a file
In Java, we can use Files.write and StandardOpenOption.APPEND to append text to a file.
Date: 2019-08-11 View: 1520
-
Java How to create and write to a file
In Java, we can use Files.write (Since JDK 7) to create and write to a file, one line, simple and nice. See the following examples :
Date: 2019-08-11 View: 1520
-
Java How to read a file
In Java, there are few ways to read a file.
Date: 2019-08-11 View: 1520