Year: 2017

  1. Home
  2. Blog
  3. Year: 2017

Java SE 8 parallelSort in Arrays class

Arrays class now has several new “parallel” methods to take advantage of multi-core hardware. Arrays method parallelSort can sort large arrays more efficiently on multicore systems. Lets create a very large array and use Java SE 8 Date/Time API to compare how long it takes to sort the array with methods sort and parallelSort. SecureRandom random = new SecureRandom(); // […]

Continue Reading

Bubble Sort Using JAVA

Bubble sort is a simple sorting algorithm that works by repeatedly stepping through list to be sorted, comparing each pair of adjacent items and swapping them if they are out of order. The pass through list is repeated until no swaps are needed, which indicates that the list is now sorted. Although algorithm is simple, most of the other sorting […]

Continue Reading

Enabling Dimension Refinement Counts in a CAS­ application (Forgeless)

Problem Are you missing refinement counts on dimensions with Oracle Commerce 11.1 or later using CAS ­based application (Forgeless)? Endeca JSP Reference Application shows records but missing counts of records next to those dimensions. Do you want to fix it, well then this discussion is for you. With earlier application which uses Forge, it was possible to enable refinement counts […]

Continue Reading

Create Matrix With User Input Using Java

Using 2D array to implement the matrices in java. Below example shows how to take matrix data from the user inputs and display them. package com.ms.matrix; import java.util.Scanner; public class CreateMatrix { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println(“Enter The Number Of Matrix Rows”); int matrixRow = scan.nextInt(); System.out.println(“Enter The Number Of Matrix Columns”); int […]

Continue Reading

Two-dimensional array JAVA

We can declare a two dimensional array and directly store elements at the time of its declaration as shown below: int numbers[][]={{23,45,57,24,74},{34,67,23,55,23},{34,74,24,46,78},{23, 56,87, 89,96}, {95, 03, 45, 99,56}}; Here int represents integer type elements stored into array and array name is ‘numbers’. ‘int’ is the datatype for all elements represented inside “{” and “}” braces because an array is a […]

Continue Reading

Workbench saved rules not applying to dgraphs

When rules are saved, default behavior of Workbench is to apply update to all dgraphs. All defined dgraph HOST’s EAC Agents are instructed to perform an emgr_update command to request the MDEX configuration files from defined Workbench HOST. Webstudio HOST is configured in webstudio.properties file in the “$ENDECA_CONF/conf” in Linux or “%ENDECA_CONF%\conf” in Windows directory. “com.endeca.webstudio.hostname” variable specifies HOST for Workbench. This […]

Continue Reading
Show Buttons
Hide Buttons