Java: How to Get Random Key-Value Element From HashMap
Is there a way to get the value of a HashMap randomly in Java? Of Course, below is a simple Java Code which represents the same. Also, at the end of program there is a bonus code to Shuffle complete...
View ArticleJava: Simple QR Code Generator Example – Create QR codes for free
Scan this: You will be redirected to https://crunchify.com QR code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional barcode) first designed for...
View ArticleHow to iterate through Java List? Seven (7) ways to Iterate Through Loop in Java
How to iterate through Java List? This tutorial demonstrates the use of ArrayList, Iterator and a List. There are 7 ways you can iterate through List. Simple For loop Enhanced For loop Iterator...
View ArticleIn Java How to convert Byte[] Array To String and String to Byte[]?
How to convert Byte[] Array to String in Java? How to convert UTF-8 byte[] to string? Convert Java Byte Array to String to Byte Array. String stores textual data and for storing binary data you would...
View ArticleHave you noticed Race Condition in Java Multi-threading Concurrency Example?...
Sometime back I’ve written an article on Producer Consumer Example and how to handle read/write operation better way in Java. On the similar note, in this tutorial we will discuss something on Race...
View ArticleSimple Scroll to Top Button in WordPress Footer without any JavaScript...
Scroll to Top / Back to Top button at the bottom of page is sometime very essential mainly if you have long posts. Here on Crunchify, we do have most of Java tutorials and Blogging tips and those are...
View ArticleIn Java How to Find Maximum Occurrence of Words from Text File?
In this Java tutorial, you will learn How to Find Maximum Occurrence of Words from given Text File? Here is a logic for getting top element: Create a class CrunchifyComparable that can store the...
View ArticleHow to Delete a Local Git Branch?
When working with Git, managing branches efficiently is crucial for keeping your repository clean and organized. If you no longer need a local branch, deleting it can help maintain clarity in your...
View ArticleHow to Optimize Code Using Binary Notation?
Efficient programming often involves optimizing code for speed and memory usage. One powerful but underutilized technique is leveraging binary notation to optimize operations at a low level. Binary...
View ArticleIn Java How to get list of files and search files from given folder?...
In this tutorial we will go over FilenameFilter interface to search a file and list of files with given file extension (i.e. .png, .jpg, .jpeg, .txt, .pdf). lifeFiles returns an array of abstract...
View Article