Lessons and articles about Android platform

What is JAVA?

Hello dear readers of our blog. In today's article, we will introduce you to a very well known and widely spoken language in the development world. This is object-oriented programming language - JAVA.

We will start from history of the language. In the beginning of its development it was primarily used in programming of appliances. Development of JAVA language was officially completed in May of 1995. Applications written on it, can be compiled into byte code and at the same time can easily work in a virtual machine - JVM, which processes it and sends the instructions in special form to the interpreter. Initially language was called Oak. Over time, it was renamed into JAVA and was used for writing applications and server software. It is accepted that the final language got its name due to the island of Java, where the coffee was grown with the same name.

Let's look at the main benefits of this language.

Insertion sort algorithm in Java

Hello our followers, today we want to share you our knowledge of sorting algorithms with example for Java language. This type of algorithm can be used in different languages, such as C, C + +, C #. But we will try to tell you how to create it in the famous and well known language Java with examples of work for the platform Android.

Let's start with what we call the sort ordered set with any data assignments for a given query. If you use numbers, sorting can be carried out from small to large and vice versa. If you need to sort words, you can do it in alphabetical order, or sort them by the number of letters. We must distinguish between internal and external algorithms sorting. As for the sort of outer type - it uses a lot of memory, which certainly can not be said about the internal, also called sort in place, and it requires only a few bytes, and intermediate variables.