Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Sunday, December 17, 2017

Breadth First Search(BFS) In Java

BFS or Breadth First Search is a very well-known graph traversal algorithm. The following java program performs this algorithm using adjacency list representation of graphs. Graphs may contain a cycle. To avoid processing a node twice, we used a Boolean array, name visited.

Friday, December 15, 2017

Spring Boot REST API - Convert English Number into Words

Spring is one of the most popular Java EE application framework. Today we will develop a very simple Spring Boot REST API which receives a number as a request and in response, we will get the corresponding English words.

Please note that, this is not a tutorial to learn about Spring Boot REST API. I assumed you already familiar with this technology.

Thursday, November 23, 2017

Generate all possible permutations in Java using recursion.

In the previous example, we drew a pyramid in java without any loop. We used recursion to achieve our goal and hopefully, you got a very clear idea how recursion works. In the following example, I will show you how to print all permutations of a given string. If the given string is "1234", then all possible permutations are:


 A total number of permutations are 24. ( 4! = 24 )

Wednesday, October 25, 2017

5 tips for being a good Java programmer

The Java programming language is one of the most complete in the market since its inception in the mid-90s of the last century. Several features, such as its robustness, multipurpose, concurrency, object-oriented; among others, have defined this language entirely.

There are many applications and systems derived that currently use Java in the technology platforms deployed worldwide. And its programmers community is widely recognized in various fields of computing. But within the same, there exist as in other disciplines, those that stand out more about what is considered the average standard of performance. And here it is valid to ask: what highlights as good programmers over others?

Sunday, October 22, 2017

4 Common Mistakes For Beginner Java Programmer

One of the most complete programming language available is Java. Among its most essential characteristics: it’s concurrent, object-oriented and multipurpose; and designed so that its code can run from any machine or device, and its syntax is derived directly from the C and C ++ languages.

Since its official appearance in 1995 by Sun Microsystems, it has had many derivations according to its usage environment, extending more recently to the mobile and web applications, serving its (although failed) philosophy of running on every possible device in a single unique interface as a boost for the Android platform.