Any floating-point literal in Java is by default of a double type.
Execute specific unit test in Maven using Eclipse
Okay, your project has hundreds of unit tests, but you only need to execute one or perhaps only all tests from a JUnit test file. Maven allows for that, and Eclipse makes it more convenient. Eclipse JUnit Run Configuration With
Point to local dependency in Maven using systemPath
[wp_ad_camp_1] Sometimes you may not have access to a repository and may need to go around it. If your colleagues have local copies of jar files needed to compile a whole Maven project, you may simply replace the content of
Host multiple databases in a HSQLDB server
On this post, we’ll host multiple databases in a single HsqlDB server running locally on a Windows machine. The following are additional details about the Software application used. [wp_ad_camp_5] 1. HSQLDB 2.3.3 2. Windows 7 64-bit 3. Java 8 (JRE
How to install Scala in Ubuntu 14.04 LTS
This post demonstrates how to install Scala in Ubuntu 14.04 LTS. JDK is required [wp_ad_camp_5] Before you can compile and run a Scala program, you need to have a JDK installed in your system. For instance, I am using OpenJDK
Convert String to LocalDate in JodaTime and Java 8
Handling dates (and time) is never easy and time-consuming. Moreover, its support by Java has been inadequate. If you find yourself longing for some libraries to ease the pain, go ahead because you are not alone. For pre-Java 8, one
Using @Query to execute a MySQL function
Using @Query to execute a MySQL function as follows. Here is an example that uses Spring Data @Query to execute a MySQL function that returns a string value. Let’s say we have a MySQL function that returns a predefined text.
Pass data to Controller from another controller using $mdDialog
[wp_ad_camp_1] There are a couple of ways to do this.One is via $rootScope by creating (maybe temporarily) a public member variable and let the dialog controller read from it. This is also similar to creating a service with public member
Dropdowns in UI Grid
[wp_ad_camp_1] Using dropdowns in UI-Grid is two-fold. One, you define a filter that displays the labels of HTML’s SELECT values when the dropdown is not on focus or edit mode. The following Department labels are displayed using a filter. Second,
Parse CSV file uploaded as MultipartFile using Apache Commons CSV
From MultiPartFile to Reader object [wp_ad_camp_5] The parse method only accepts a single java.io.Reader object and you may need to convert the MultipartFile object to a Reader object. The MultipartFile class has the getInputStream() whose return value can be passed