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

Image may be NSFW.
Clik here to view.

Log File Tailer (tail -f) implementation in Java – Best way to tail any file...

File operations using Java are my favorite part. There are number of tutorials you may have seen on Crunchify like append data to file, read data from file, read and parse JSON file, read...

View Article


Image may be NSFW.
Clik here to view.

In Java best way to Convert File into a Bytes (Array of Bytes)

Sometime back I’ve written some articles on convert Byte[] Array To String, Convert Char Array to String, convert String to Char Array, convert Arrays to Set, etc. In this tutorial we will go over on...

View Article


Image may be NSFW.
Clik here to view.

Step by Step guide to Enable HTTPS or SSL correct way on Apache Tomcat Server...

It’s been almost 12 years I started using Apache Tomcat. I believe when I did my 1st under grade project, it was on Tomcat version 1.x. Now it’s already on version 8.0. Mostly I’ve been in touch with...

View Article

Image may be NSFW.
Clik here to view.

Best way to get any Domain’s Zone Records, MX and Name Server in Java using...

As per definition the dig command in Linux is primarily used to query dns servers. It is useful tool for network troubleshooting. It is popular due to its flexibility and very clear output over host...

View Article

Image may be NSFW.
Clik here to view.

How to get MD5 checksum for any given file in Java? Use commons-codec’s...

Tighten the security of your enterprise application is the biggest challenge of any organization. Consider this actual production scenario: You have an application which reads the value from a file...

View Article


Image may be NSFW.
Clik here to view.

How to read File in Java and Count total number of Characters, Words and Lines

Recently I got an email asking for “Can I have a tutorial on counting total number of words, lines and characters from file?” Some time back I’ve written an article on How to Read a File Line by Line...

View Article

Image may be NSFW.
Clik here to view.

Spring MVC 4.2.2 – Best way to Add/Integrate JS, CSS and images into JSP file...

Sometime back I’ve written a tutorial on Hello World Spring MVC. Spring MVC web is a model-view-control framework and you can find more information here. As you could see Sayan and Arturo asked few...

View Article

Image may be NSFW.
Clik here to view.

How to create New simple Maven Project in Eclipse without archtype – Detailed...

Maven and Java is a best combination you could get for your production project in present time. I don’t see any other combination which best works. Why Maven? What are the advantages using Maven with...

View Article


Image may be NSFW.
Clik here to view.

Java Hashmap – containsKey(Object key) and containsValue(Object value) –...

There are few concepts and technologies which comes by default with each and every programing language and Collection is one of them. Java Collection is a very big field. It comes with so many...

View Article


Image may be NSFW.
Clik here to view.

Spring Framework 4.2.3 @Order Annotation Tutorial – Sort Order for an...

Spring MVC is the best web controller framework and configuration model for Java based programming enterprise application. We do have more than 40 Spring MVC tutorials on Crunchify so far. In this...

View Article

Image may be NSFW.
Clik here to view.

ArrayBlockingQueue Vs. Google Guava Non-Blocking EvictingQueue Example

Concurrency is very amazing in Java. java.util.concurrent package contains lots of utilities which we could use in number of different ways. In this tutorial we will go over difference between...

View Article

Image may be NSFW.
Clik here to view.

How to Create Your Own Non-Blocking, Fixed Size Queue in Java? Same as...

If you don’t want to use Google Guava’s EvictingQueue external dependency in your Java Enterprise Project then you should consider creating your own non-blocking, fixed size queue. Basically we want...

View Article

Image may be NSFW.
Clik here to view.

Best way to Compare String Arrays, Integer Arrays and Strings in Java –...

java.util.* package contains so many utilities like collection framework, event model, date facility, time facility and so on. Java doesn’t provide simple compare utility for primitive types like...

View Article


Image may be NSFW.
Clik here to view.

Introducing a Discussion Forum for any Java Exceptions or Blogging queries...

Visit ask.crunchify.com Let me start this topic with some difference between blogging and discussion forum. Blogging Blogging is something you would like to focus more on Quality content, I would say...

View Article

Image may be NSFW.
Clik here to view.

Java 8 java.time.temporal.TemporalAdjusters and Stream.flatMap() Tutorial

It’s been almost 2 years Java 8 was released, March 2014. I’m sure most of the companies still using Java 7 with Apache Tomcat in their production environment but recently it’s picking up some...

View Article


Image may be NSFW.
Clik here to view.

Have you tried changing Eclipse Color Theme? Install Eclipse Dark and Other...

As a Java developer I use Eclipse IDE everyday. It’s been almost ~12 years I started working on Java and Eclipse. Personally and professionally I love building high scale Java Enterprise softwares. To...

View Article

Image may be NSFW.
Clik here to view.

Escape Character Utility for URL and JSON data – Free to use in your Java...

What is escape character in Java? Mainly escape characters are the characters which replaces existing character with new & provided character which works best without throwing any error at...

View Article


Image may be NSFW.
Clik here to view.

Java NIO (Non-blocking I/O) with Server-Client Example – java.nio.ByteBuffer...

Java NIO is my favorite topic. I have been working with NIO since last 2 years and would like to share simple Server-Client code for my readers who are free to use this code in their production...

View Article

Image may be NSFW.
Clik here to view.

Clean Expired Element from HashMap while Adding more Elements at the Same...

Hashmap, ArrayList, Static Map, Vectors, etc are the most used Java collection framework elements. There are infinite number of scenarios you could use this as per your need. This example is very...

View Article

Image may be NSFW.
Clik here to view.

Missing Maven settings.xml file for your Eclipse? What if you need two...

Are you running multiple Eclipse Environments on your developer workstation? Or on your laptop? I do. Let’s consider a scenario with two different Eclipse workspace with different custom maven...

View Article
Browsing all 1037 articles
Browse latest View live