Selection sort logic is very simple. Sort the shortest element with the element with the 0th position. Keep doing the same until you reach at the end.
A thread group is a collection of threads. A thread group allows the programmer to maintain a group of threads more effectively. To support thread groups Java provides a class named ThreadGroup available in java.lang package.
The java.awt.event package contains many event classes which can be used for event handling. Root class for all the event classes in Java is EventObject which is available in java.util package. Root class for all AWT event classes is AWTEvent which is available in java.awt package and is a sub class of EventObject class.
Every template language has its strengths and weaknesses, and they all have syntax to remember, and more frequently to forget. Recently I completed some work on the old Spring Petclinic, converting it to use Thymeleaf in the view layer, and re-organizing the code to be a bit more "modern"
There is an IntegerCache in java.lang.Integer which stores instances for values -128 though 127. This means that Integer.valueOf(17) always will return the very same instance, while Integer.of(200) will not. While this clearly has the advantage of reuse of commonly used Integer values, thus relieving the GC from some work, it also has implications for autoboxing and identity comparisons.
On behalf of the team, I am pleased to announce the release of the first release candidate of Spring Cloud Data Flow for Kubernetes 1.1.
This tutorial will show you how easy is integrate Spring and DataTables.Continue reading on »
Spring Framework 4 supports Java 8 language and API features. In this article, we will focus on the new Java 8 features which are supported in Spring 4. The most important ones are lambda expressions, method references, JSR-310 Date and Time, and Repeatable annotations. Lambda Expressions Spring code base uses a lot of functional interfaces and with Java 8, lambda expressions can be used to write cleaner and compact code. We can supply a lambda expression whenever an object of a functional interface is expected. Let us first learn about functional interfaces before proceeding further.
JPA relies heavily on the persistence.xml configuration file, and the standard API to bootstrap a JPA provider programmatically requires too much boilerplate code. While in a typical enterprise application, providing a persistence.xml file is not really an issue, this requirement doesn’t get along with unit testing, especially when tests are completely isolated and they need to validate different aspects of JPA or Hibernate.
The JPA Repository is a useful Spring Framework library that provides Object Relational Mapping for Java web applications to be able to connect to a wide variety of databases. Most applications needs to establish a connection with one database to store and retrieve the data though sometimes there could be more than one database to read and write. There could also be some cases where the application needs to choose which database should be used dynamically, based on each request parameters. Lets see how to configure and establish connections for these three cases.
In this post , we are going to create simple ListView. ListView is the view in which you arrange your list items in vertical order.
In this post, we are going to see about Android Rating Bar. RatingBar is android widget which is used to provide rating bar with star icons. You might have seen this RatingBar when any application asks for you to rate installed app.
When you are working on app which wants to access internet, you need to add extra permission in androidManifest.xml else your application won't be able to access internet. So you need to put below code in AndroidManifest.xml file to access internet in your app.
Method resolve adds Path instances and is useful to create absolute paths. The method relativize substracts Path instances and is useful to remove the root component from the absolute path
With Arc Layout explore new styles and approaches on material design
Panter Dialog is an stylish android library that helps users add cool features like adding header and header logos
This guide walks you through the process of creating a "hello world" RESTful web service with Spring.