Quantcast
Channel: Crunchify
Viewing all 1037 articles
Browse latest View live

Java ConcurrentNavigableMap and ConcurrentSkipListMap Tutorial with all Details (java.util.concurrent.*)

$
0
0

Sometime back I’ve written an article on difference between HashMap, ConcurentHashMap and SynchronizedMap. In this tutorial we will go over ConcurrentNavigableMap and ConcurrentSkipListMap with all detailed explanation. Do you have any of below questions? Comparing ConcurrentHashMap v/s ConcurrentSkipListMap Java ConcurrentSkipListMap Tutorial TreeMap vs ConcurrentSkipListMap ConcurrentHashMap or LinkedHashMap Why SkipListMap in Java? As per a wiki page,...
Read Article  

The post Java ConcurrentNavigableMap and ConcurrentSkipListMap Tutorial with all Details (java.util.concurrent.*) appeared first on Crunchify.


In Java How to find a Line with Maximum Number of Words? Using Stream.forEach() Iterator

$
0
0

For any given file, Write a Java program to find a line with maximum number of words in it is a very common interview question. In other words, write a Java program to find longest line from file. In this tutorial we will go over all detailed steps to programatically figure out longest line. Here...
Read Article  

The post In Java How to find a Line with Maximum Number of Words? Using Stream.forEach() Iterator appeared first on Crunchify.

Eclipse and EclEmma: Best Code Coverage Plugin – Complete Working Testcase Tutorial

$
0
0

Even though you are a hardcore Java Developer, you may need to have basic understanding on how to do Code Coverage testing with some standalone tool or with simple Eclipse Plugin. In this tutorial we will go over how setup Code Coverage plugin in Eclipse and how to use it and check result. This tutorial...
Read Article  

The post Eclipse and EclEmma: Best Code Coverage Plugin – Complete Working Testcase Tutorial appeared first on Crunchify.

Fix for Crayon Syntax Highlighter WordPress Plugin and PHP 7.3 Fatal Error

$
0
0

Be careful before upgrading to PHP 7.3 if you are using Crayon Syntax Highligher WordPress plugin. Your site will crash with fatal Uncaught Error. On Crunchify we are using Crayon Syntax Highlighter since last 4 years without any issue. Recently we upgraded PHP version to 7.3.1 and noticed fatal error on our staging site. Fatal...
Read Article  

The post Fix for Crayon Syntax Highlighter WordPress Plugin and PHP 7.3 Fatal Error appeared first on Crunchify.

What is Logback.xml Logging Framework? ConsoleAppender, FileAppender and RollingFileAppender Example

$
0
0

Are you aware of Logback Logging Framework? Well, most of the people mainly use log4j and slf4j into their project. Since last 6 months I’ve been using Logback.xml logging framework and I would say I saw quite a few performance improvements in my production application. In this tutorial we will go over practical example of...
Read Article  

The post What is Logback.xml Logging Framework? ConsoleAppender, FileAppender and RollingFileAppender Example appeared first on Crunchify.

Java: Producer Consumer Example – Handle Concurrent Read/Write

$
0
0

The producer-consumer problem (also known as the bounded-buffer problem) is a classic Java Example of a multi-process synchronization problem. The problem describes two processes, the producer and the consumer, who share a common, fixed-size buffer used as a queue. The producer’s job is to generate a piece of data, put it into the buffer and start again. At the same time, the consumer...
Read Article  

The post Java: Producer Consumer Example – Handle Concurrent Read/Write appeared first on Crunchify.

How to get your WordPress Article Featured on Google Search Result Page (SERP)? – SEO Tips

$
0
0

Just imagine your blog post as Google Featured Snippets in Search Result. It's that cool? Oh yeah, it is. As a blogger you should feel proud about your blog post, as for billions of folks your article is featured on Google front page. Take a look at these Google Search Results: Result-1 Result-2 If you...
Read Article  

The post How to get your WordPress Article Featured on Google Search Result Page (SERP)? – SEO Tips appeared first on Crunchify.

How to Debug WordPress PHP Errors, Warnings & Enable (Disable) PHP error reporting

$
0
0

Are you getting PHP error on your WordPress site? Do you want to disable PHP error? Also, have any of below questions? Then you are at right place. How to Turn Off PHP Errors in WordPress How to hide PHP Warnings and Notices in WordPress Debugging in WordPress PHP Notices, Warnings and Errors on Your...
Read Article  

The post How to Debug WordPress PHP Errors, Warnings & Enable (Disable) PHP error reporting appeared first on Crunchify.


How to install Ansible on macOS?

$
0
0

Ansible is one of the best powerful IT automation tool out there. It directly completes with SaltStack, Docker and so on. In this tutorial we will go over steps on how to install Ansible on macOS? Mac setup and configuration via Ansible. How to install Ansible on Apple MacOS X using command line? install ansible...
Read Article  

The post How to install Ansible on macOS? appeared first on Crunchify.

How to install Ansible on Linux Ubuntu OS?

$
0
0

Let’s get started on how to install Ansible on Linux Ubuntu and macOS. What is Ansible? Ansible is an all in one IT solution. It’s an IT orchestration engine which automates configuration management, application deployment, remote infrastructure management command based simple tool. Today we will go over detailed steps on Ansible installation steps and complete...
Read Article  

The post How to install Ansible on Linux Ubuntu OS? appeared first on Crunchify.

Ansible: How to copy File, Directory or Script from localhost to Remote host?

$
0
0

As a part of IT management department, folks deal with lots of scripts and command line tools. I’m sure you face day to day situation in which you have copy files or scripts to thousands of remote hosts. IT department folks don’t just login to each thousands of hosts and run script manually. And that’s...
Read Article  

The post Ansible: How to copy File, Directory or Script from localhost to Remote host? appeared first on Crunchify.

How to Run Windows, Linux, macOS terminal commands in Java and return complete Result

$
0
0

Executing a system command is relatively simple – once you’ve seen it done the first time. It involves the use of two Java classes, the Runtime class and the Process class. Basically, you use the exec method of the Runtime class to run the command as a separate process. Invoking the exec method returns a Process object for managing...
Read Article  

The post How to Run Windows, Linux, macOS terminal commands in Java and return complete Result appeared first on Crunchify.

How to set GitHub user.name and user.email per Repository? Different .config file for different Repository

$
0
0

Do you have Personal GitHub and Work related GitHub account? I’m sure you do. Most of the fortune 500 companies are now using GitHub as their official code repository. By default /<Users>/.gitconfig file is used for all related information during commit. This is how .gitconfig file looks like: As you see above, there is tag...
Read Article  

The post How to set GitHub user.name and user.email per Repository? Different .config file for different Repository appeared first on Crunchify.

Missing Buffer Social Icon in Font Awesome? How to add it manually into your WordPress site?

$
0
0

On Crunchify we have been using Font Awesome since last 3 years for all of social sharing icons and Sidebar social follow buttons. While working on social sharing icons we noticed we need Buffer social sharing button too and somehow FontAwesome doesn’t have buffer social button. There is already an issue filed in 2013 without...
Read Article  

The post Missing Buffer Social Icon in Font Awesome? How to add it manually into your WordPress site? appeared first on Crunchify.

Bluehost Hosting Review: Crunchify Exclusive 67% off on Hosting Plan Coupon Link

$
0
0

Huge 67% Bluehost WordPress Hosting Discount by Crunchify

Bluehost is one of the largest and most trusted web hosting services powering millions of websites.

Join Bluehost now and get a FREE domain name for life!

Coupon code link: https://crunchify.com/go/bluehost (no code required – it’s just $2.95/month for 36 months 🙂 )

Step-1 Register for Bluehost

Go to Bluehost. Click on Get Started Now button. It’s just $2.95/month.

Bluehost $2.95 per month hosting - Crunchify Offer

You will get:

Step-2

Choose your plan from Basic, Plus or Pro and click select.

  1. Choose New Domain or Select existing Domain option
  2. Enter Domain and click next

Sign up for Bluehost - Register new Domain

Step-3

Provide your account information, Payment information and click Submit to confirm your order.

As you see you have to just pay $106.20 for 3 years of Bluehost WordPress hosting. That’s a big $180 discount you are getting.

Huge $180 Discount for your WordPress Bluehost Hosting plan

Step-4

Once Signup, login to cPanel and click on 1-click install.

Link: https://my.bluehost.com/web-hosting/cplogin

  • Once login, create your WordPress site: https://my.bluehost.com/hosting/app#/create/wordpress

Create site at Bluehost.com

Step-5

Follow all prompts and complete your WordPress installation. And you are all set.

There are multiple Bluehost cPanel Options available out there.

There are multiple Bluehost CPanel Options available

Below are the few all Services and Utilities for you to choose.

All Bluehost Services and Utilities

I hope this tutorial will help you setup your site at Bluehost without any hassle. Let us know if you face any issue setting up your WordPress blog

The post Bluehost Hosting Review: Crunchify Exclusive 67% off on Hosting Plan Coupon Link appeared first on Crunchify.


Ads.txt (Authorized Digital Sellers) file and Google Adsense Revenue [All in one Guide]

$
0
0

Ads.txt complete guide - Crunchify Tips

Let me start with my recent experience with Ads.txt file. To be honest, I just came to know about it last week. It seems Ads is a short-name of Authorized Digital Sellers.

It’s a new standard imposed by Google and other Advertising companies around November 2017.

Let’s first understand what is ads.txt file

Consider this scenario. You are owning a blog/site and you are allowing advertiser to run ads on your site. But what if your site is hacked and somebody else is running ads on your site and you are completely unaware of that.

Your site’s revenue is going to their account rather than yours.

That’s where ads.txt file come into picture. As name suggests it allows your to Authorize specific Digital Sellers. Only DIRECT or RESELLER publishers are allowed to place ads on your site which you specified in your ads.txt file.

Here are some ads.txt files for your reference:

  • https://mashable.com/ads.txt
  • https://www.searchenginejournal.com/ads.txt
  • https://crunchify.com/ads.txt

This system creates more transparent ecosystem around digital ads automatically.

What if you are running Google Adsense Ads?

Google is not mandating ads.txt file currently. That means, publishers are not required to put ads.txt file into their root domain. In other words, if you don’t have ads.txt under your site’s root domain that means you are allowing any publishers to run ads on your site. There won’t be any verification performed on your site.

It’s like catch all block in Java. Allow everything 🙂

But there is a big if – if you have ads.txt file then it’s absolutely required for you to put your Google Adsense Publisher ID into it.

Google will warn you in case you miss putting Adsense publisher ID into it into their admin console. Adsense system will also send you emails with more details.

Here are the screenshot and message:

If you have ads.txt file and you forgot to put your Google Adsense Publisher ID.

Error Message: Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID. Fix this now to avoid severe impact to your revenue.

Earnings at risk - One or more of your ads.txt files doesn't contain your AdSense publisher ID

Email with more details:

Potential revenue decrease if no action taken

How to fix Google Adsense ads.txt error?

As you see in above email just add a single line to your ads.txt file

google.com, pub-7816438xxxxxxxxx, DIRECT, f08c47fec0942fa0

Without this line Adsense will stop serving ads on your site. Once you update your ads.txt file then it will take upto 24 hrs for system to start serving ads again.

Current ads.txt project version 1.0.1 details on official site: Link.

I hope you detailed idea on how to setup your ads.txt file right way to stop loosing your revenue from Google Adsense and other Advertisers. It’s an easy process and I would recommend everybody to implement ads.txt file.

Are you using any other Ad network?

Please follow other Ad network’s detail page on how to implement and add more lines to your ads.txt file.

Let me know if your revenue increase after white listing digital seller. Also, if your Adsense account is disabled then share screenshot and i’ll take a look into details.

The post Ads.txt (Authorized Digital Sellers) file and Google Adsense Revenue [All in one Guide] appeared first on Crunchify.

Little late in the game but I’m glad I’ve started using Buffer – Smart way to Share on Social Media

$
0
0

Social Media is a Magic. Twitter, Facebook, Google+ and so many other game changer players are in the market. Purpose of this social media market is to spread the knowledge, articles across world.

I’ve been seeing Buffer App since long time on lots of other WordPress blogs but never tried it.

Last week I registered for BufferApp and now it’s my favorite app. Simply loving it. It’s the best and smart way to share on Social Media.

  • Buffer App Scheduling Tool for Twitter, Facebook and LinkedIn
  • Social Network Marketing with BufferApp
  • How to Schedule WordPress Posts for Social Media with BufferApp?
  • How to Use Buffer App?
  • How to schedule Tweets via BufferApp?

Here is a simple sign in & Setup Process

Step-1

Register using any of social accounts mentioned below.

Buffer App Signin Screen

Step-2

Connect any of below social accounts.

Connect a Social Media - BufferApp

Step-3)

After adding social media, you should see something like below.

List of all your connected social media accounts.

Buffer Dashboard screenshot

Step-4

Security is very important. Try adding 2-Steps authentication from My Account tab.

BufferApp - 2 Steps Authentication

Step-5

Just add Buffer Social Media Icon. We have detailed steps on how to add social sharing buttons without any JavaScript.

BufferApp Social Sharing Button

Step-6

Selection Options and Schedule your post.

Buffer new Social Sharing Page Layout

Step-7

And you should be all set.

Step-8

Now go back to your Buffer dashboard and you should see next post time, contents, etc. From Schedule tab your should set all different timeslot for your social media accounts.

Buffer App - Content section

We are using Buffer's Pro plan at Crunchify. I hope this tutorial will help you get started on scheduling post.

The post Little late in the game but I’m glad I’ve started using Buffer – Smart way to Share on Social Media appeared first on Crunchify.

SEMrush – favorite Site Audit and SEO Checker Tool

$
0
0

SEMrush - We are loving it - We use it for Crunchify.com

On Crunchify, we are very passionate about site speed and optimization in all possible way.

So far we haven’t been focused on number of key SEO metrics but after looking at SEMrush dashboard for 1st time, I was amazed. SEMrush provides all of below in depth metrics.

SEMrush SEO tools for all plans - Crunchify Tips

Here are my favorite SEMrush tools which we like:

  • Site Audit
  • On Page SEO Checker
  • Position Tracking
  • Social Media Tracker
  • Social Media Poster
  • Backlink Audit
  • Brand Monitoring
  • Post Tracking
  • Content Audit
  • Organic Traffic Insights
  • PPC Keyword Tool
  • Organic Research Tool
  • Keyword Research Tool
  • Advertising research
  • Backlinks
  • SEO Content Template
  • Keyword Difficulty
  • Traffic Overview
  • Lead Generation Tool
  • Topic Research

How to get started?

Step-1

First thing is to just signup for SEMrush. You can sign up for 7 days FREE trial.

Step-2

Click on Add your project link and add your domain.

Create SEMrush Project

Step-3

Next thing is to setup each and every metrics from your Dashboard as you see in below image.

Crunchify SEMrush Dashboard Metrics

Please setup all above metrics and you will see nice metrics with all detailed insight.

Let’s explore SEMrush:

1. Position Tracking Metrics

The Visibility index is based on click-through rate (CTR) that shows a website’s progress in Google’s top 100 for keywords from the current tracking campaign.

Position Tracking Tool by SEMrush

2. Visibility Trend Metrics

This module also shows Estimated Traffic and Average Position metrics.

SEO Visibility Trend, Estimated Traffic, Average Position Tricks

3. Ranking Distribution Metrics

SEO Ranking Distribution Metrics

4. Content Analyzer

This module is same as Google Analytics module. Will give you all metrics like Pageviews, users, sessions, Bounce Rate and more.

Better Analyse your Site Content Weekly - Crunchify Tips

5. Link Building Metrics

This metrics will tell you on how is your link building strategy.

Link Building and SEO by Crunchify

6. Backlink Audit Metrics

Backlinks are the links which points to your blog from other worldwide blogs.

More backlinks the better.

Have you performed Backlink audit? Use SEMrush

7. On Page SEO Checker Metrics

One of the best SEO suggestion you will get from SEMrush.

We have just started with SEMrush but I’m sure we will try some of the suggestions and will update you all with result.

On page SEO checker tools

I would recommend to give SEMrush a try and please share your feedback.

The post SEMrush – favorite Site Audit and SEO Checker Tool appeared first on Crunchify.

How to use Spring Framework StopWatch() to Log ExecutionTime and ElapseTime of any Java Thread

$
0
0

Spring Framework - StopWatch Examples

Spring Framework – StopWatch() is a very handy utility for any Java developer if you have small Java application or production ready application. Most of the Java applications involve Thread pooling or multiple simultaneous job invocation at the same time.

Have below questions?

  • How to measure execution time in Java
  • How to measure elapsed time using Spring StopWatch

Then you are at right place. In this tutorial we will go over steps on how to measure and report time taken by each and every thread or Java Methods.

Let’s get started:

StopWatch is a simple stop watch, allowing for timing of a number of tasks, exposing total running time and running time for each named task.

You need Spring MVC core Maven dependency to get this program run.

<dependency>
	<groupId>org.springframework</groupId>
	<artifactId>spring-core</artifactId>
	<version>5.0.3.RELEASE</version>
</dependency>

Please add above maven dependency to your Maven Project and follow below steps.

  • Create class CrunchifySpringFrameworkStopWatch.java
  • Create StopWatch object crunchifyWatch
  • Start and Stop crunchifyWatch object during performTask1() and performTask2() operation
  • Return totalTimesInSeconds
  • In addition to print complete StopWatch result in prettyPrint format
  • We are using all below operations on StopWatch to print different results.
    • getTotalTimeSeconds()
    • prettyPrint()
    • shortSummary()
    • getTaskCount()
    • getLastTaskInfo().getTaskName()

Kindly take a look at code for more detailed description.

CrunchifySpringFrameworkStopWatch.java

package crunchify.com.tutorial;

import org.springframework.util.StopWatch;

/**
 * @author Crunchify.com Use StopWatch to expose total running time of any Java Threads
 */

public class CrunchifySpringFrameworkStopWatch {

	public static void main(String[] args) {

		// StopWatch is a simple stop watch, allowing for timing of a number of tasks, exposing total running time and running time for each
		// named task.
		StopWatch crunchifyWatch = new StopWatch("CrunchifyThreads");
		CrunchifySpringFrameworkStopWatch crunchifyThread = new CrunchifySpringFrameworkStopWatch();

		crunchifyWatch.start("CrunchifyThread-1");
		crunchifyThread.performTask1();
		crunchifyWatch.stop();

		crunchifyWatch.start("CrunchifyThread-2");
		crunchifyThread.performTask2();
		crunchifyWatch.stop();
		System.out.println("CrunchifyThreads took total: " + crunchifyWatch.getTotalTimeSeconds() + " seconds");

		// prettyPrint() return a string with a table describing all tasks performed. For custom reporting, call getTaskInfo() and use the
		// task info directly.
		System.out.println("\n1. prettyPrint Result: " + crunchifyWatch.prettyPrint());

		// Return a short description of the total running time.
		System.out.println("2. Short Summary: " + crunchifyWatch.shortSummary());

		// Return the number of tasks timed.
		System.out.println("3. Total Task Count: " + crunchifyWatch.getTaskCount());

		// Return the name of this task.
		System.out.println("4. Last Task Name: " + crunchifyWatch.getLastTaskInfo().getTaskName());
	}

	private void performTask1() {

		Runnable myRunnable = new Runnable() {

			public void run() {
				System.out.println("Crunchify Task 1 running");
			}
		};

		Thread crunchifyThread = new Thread(myRunnable);
		crunchifyThread.start();

	}

	private void performTask2() {

		System.out.println("Crunchify Task 2 running \n");
		for (int i = 1; i <= 5; i++) {
			try {
				Thread.sleep(2000);
				System.out.println("Running Loop # " + i);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		System.out.println("");
	}

}

Just run above program as a Java in your Eclipse environment or stand alone using Terminal or Windows DOS and you will see performTask2() method take 10 seconds as we have for loop with count 5 and 2 seconds Thread timeout.

Eclipse console output:

Crunchify Task 1 running
Crunchify Task 2 running 

Running Loop # 1
Running Loop # 2
Running Loop # 3
Running Loop # 4
Running Loop # 5

CrunchifyThreads took total: 10.006Seconds

1. prettyPrint Result: StopWatch 'CrunchifyThreads': running time (millis) = 10006
-----------------------------------------
ms     %     Task name
-----------------------------------------
00001  000%  CrunchifyThread-1
10005  100%  CrunchifyThread-2

2. Short Summary: StopWatch 'CrunchifyThreads': running time (millis) = 10006
3. Total Task Count: 2
4. Last Task Name: CrunchifyThread-2

Let me know what you think of StopWatch. I personally use SpringFramework’s StopWatch in all of my applications.

The post How to use Spring Framework StopWatch() to Log ExecutionTime and ElapseTime of any Java Thread appeared first on Crunchify.

In Java How to Sort a Map on the Values? The Map Interface – Java Collections

$
0
0

java-how-to-sort-a-map-on-the-values

In Java How to sort a Map on Value?  There are number of ways. Here we will follow below steps.

public interface Map<K,V>

An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at-most one value. HashMap to ArrayList? The Map interface provides three collection views, which allow a map’s contents to be viewed as a set of keys, collection of values, or set of key-value mappings.

There is another way to use Google Guava Library which contains several of Google’s core libraries that we rely on in our Java-based projects: collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so forth.

Here is an example on Google Guava Library.

The order of a map is defined as the order in which the iterators on the map’s collection views return their elements. Some map implementations, like the TreeMap class, make specific guarantees as to their order; others, like the HashMap class, do not.

Let’s take a look at below steps and example

  1. Create file CrunchifyMapUtil.java
  2. We will create crunchifySortMap function uses LinkedHashMap which keep the insertion order
  3. Main method in which we will create one Map initialCrunchifyMapValue with random Integer value
  4. Pass initialCrunchifyMapValue to crunchifySortMap which returns sorted map called sortedCrunchifyMapValue
  5. Now we will iterate through both map to see result

package crunchify.com.tutorials;

import java.util.*;

/**
 * @author Crunchify.com
 * 
 */

public class CrunchifyMapUtil {

	/*
	 * Sort a map according to values.
	 * 
	 * @param <K> the key of the map.
	 * 
	 * @param <V> the value to sort according to.
	 * 
	 * @param crunchifySortMap the map to sort.
	 * 
	 * @return a map sorted on the values.
	 */
	public static <K, V extends Comparable<? super V>> Map<K, V> crunchifySortMap(final Map<K, V> mapToSort) {
		List<Map.Entry<K, V>> entries = new ArrayList<Map.Entry<K, V>>(mapToSort.size());

		entries.addAll(mapToSort.entrySet());

		// Sorts the specified list according to the order induced by the specified comparator
		Collections.sort(entries, new Comparator<Map.Entry<K, V>>() {
			@Override
			public int compare(final Map.Entry<K, V> entry1, final Map.Entry<K, V> entry2) {
				// Compares this object with the specified object for order
				return entry1.getValue().compareTo(entry2.getValue());
			}
		});

		Map<K, V> sortedCrunchifyMap = new LinkedHashMap<K, V>();

		// The Map.entrySet method returns a collection-view of the map
		for (Map.Entry<K, V> entry : entries) {
			sortedCrunchifyMap.put(entry.getKey(), entry.getValue());
		}

		return sortedCrunchifyMap;
	}

	public static void main(String args[]) {

		Random random = new Random(System.currentTimeMillis());

		// Variable with size 10
		Map<String, Integer> initialCrunchifyMapValue = new HashMap<String, Integer>(10);
		for (int i = 0; i < 10; ++i) {
			initialCrunchifyMapValue.put("Crunchify # " + i, random.nextInt(500));
		}

		log("Initial CrunchifyMapValue ========== \n");
		for (Map.Entry<String, Integer> entry : initialCrunchifyMapValue.entrySet()) {
			log(entry.getKey() + "\t" + entry.getValue());
		}

		Map<String, Integer> sortedCrunchifyMapValue = new HashMap<String, Integer>(10);

		// Sort Map on value by calling crunchifySortMap()
		sortedCrunchifyMapValue = CrunchifyMapUtil.crunchifySortMap(initialCrunchifyMapValue);

		log("\nSorted CrunchifyMapValue ========== \n");

		for (Map.Entry<String, Integer> entry : sortedCrunchifyMapValue.entrySet()) {
			log(entry.getKey() + "\t" + entry.getValue());
		}
	}

	private static void log(String value) {
		System.out.println(value);

	}
}

Eclipse Console Result:

Initial CrunchifyMapValue: ==========

Crunchify # 0	271
Crunchify # 1	126
Crunchify # 2	83
Crunchify # 3	462
Crunchify # 4	123
Crunchify # 5	393
Crunchify # 6	40
Crunchify # 7	65
Crunchify # 8	82
Crunchify # 9	437

Sorted CrunchifyMapValue ==========

Crunchify # 6	40
Crunchify # 7	65
Crunchify # 8	82
Crunchify # 2	83
Crunchify # 4	123
Crunchify # 1	126
Crunchify # 0	271
Crunchify # 5	393
Crunchify # 9	437
Crunchify # 3	462

The post In Java How to Sort a Map on the Values? The Map Interface – Java Collections appeared first on Crunchify.

Viewing all 1037 articles
Browse latest View live