Java has standard way to get line separator regarding platform which executes Java code. It is called System.lineSeparator() .
Using Linux – let’s open terminal and enter ssh -v localhost or ssh -V to check the OpenSSH version which is currently installed. __________________________________________________________ $ ssh -v localhost OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to localhost
To store dynamically-sized elements in Java, we used ArrayList. Whenever new elements are added to it, its increase their size automatically. Key Points of an ArrayList An ArrayList is a re-sizable array, also known as a dynamic array. It raises its size according to
The first thing, which I am going to show you – how you can easily return lambda as a return type. This is example is very simple and you could adjust it regarding your needs with your domain objects, etc. We are using java.util.function.Function<T,
If we want to see, which docker containers are stopped or we need to find ID of container, which we want to start, we could do that: docker ps --filter "status=exited" or docker ps -f "status=exited"
Problem This is important not only for Windows users :). Sometimes applications become unresponsive in Mac OS as well. There are several ways, how to kill unresponsive application. Here we will cover the easiest solutions, how to kill unresponsive applications in Mac OS. Solution
Problem There are many ways how to compare strings in Java and most of them are different. Here we will cover these cases: Using .equals() method; Using .compareTo() method; Using == operator. Solution Let’s check what we can compare using .equals() / .equalsIgnoreCase() methods. If you are newbie
Problem Why do you need to reset Windows 10? Sometimes your computer becomes very slow, because you have many unused applications installed and store a lot of unused stuff in your hard disk. Some people like to flush everything and start using Windows from
Problem Let’s say you deleted a file from CVS. Next day you see that you need to remove tag(s). Usually you click on file, select “Tags” and remove it. But how could you remove a tag from a deleted file? Solution You should execute
Wikipedia about UTF8 BOM The byte order mark (BOM) is a Unicode character, U+FEFF byte order mark (BOM), whose appearance as a magic number at the start of a text stream can signal several things to a program consuming the text: What byte order, or