Sometime back I've written an article on How to Read GitHub File Contents using HttpURLConnection. In that tutorial we have created a simple "InputStreamToString" conversion utility which we will use …
Java J2EE Tutorials • Category Archive
Java and J2EE tutorials are lessons and resources aimed at teaching individuals about the Java programming language and the Java 2 Platform, Enterprise Edition (J2EE) for developing enterprise applications. These tutorials cover various aspects of Java and J2EE, including the language syntax, object-oriented programming concepts, J2EE components and APIs, and best practices for developing enterprise applications.
They are designed for both beginners and experienced Java developers, and aim to help individuals gain the skills and knowledge needed to develop high-quality Java and J2EE applications.
Introduction to WSDL (Web Service Definition Language) – Sample HelloWorld Tutorial
The Web Services Description Language (WSDL) is an XML-based language that is used for describing the functionality offered by a Web service. A WSDL description of a web service (also referred to as a …
How to convert HashMap to ArrayList in Java?
Here is a simple example on how to convert HashMap to ArrayList in Java. Java Example: package com.crunchify; /** * @author Crunchify.com */ import java.util.ArrayList; import …
Read Article about How to convert HashMap to ArrayList in Java? →
Fundamentals of Java Static Method, Class, Variable and Block
What is static in Java? Static keyword can be used with class, variable, method and block.Static members doesn't belong to any of a specific instance.Static members belong to the class only.Once …
Read Article about Fundamentals of Java Static Method, Class, Variable and Block →
How to Create Your Own Non-Blocking, Fixed Size Queue in Java? Same as EvictingQueue
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 …
Java: How to find Unique Values in ArrayList (using TreeSet, HashSet)
This tutorial gives you simple way to find unique values in ArrayList using TreeSet and HashSet. HashSet is much faster than TreeSet (constant-time versus log-time for most operations like add, remove …
Read Article about Java: How to find Unique Values in ArrayList (using TreeSet, HashSet) →
Simple way to Count Number of XML Elements in Java
In this example we will learn simple way to count number of XML elements in Java program. This tutorial works if you have any of below questions: Count XML Elements in Java using DOM parser …
Read Article about Simple way to Count Number of XML Elements in Java →
Java eNum Comparison using Equals (==) operator, Switch-Case statement and .equals() method – Complete Tutorial
Sometime back I've written an article on Java eNum - Why and for what should I use Java eNum? What is an eNum type? It is a special data type to which we could assign predefined constants to …
Create and Deploy Simple Web Service and Web Service Client in Eclipse
Follow below simple steps to create and deploy simple Web Service and Web Service Client in Eclipse IDE. Step-1 Install Apache Tomcat and add it to Eclipse in Server Tab - I'm …
Read Article about Create and Deploy Simple Web Service and Web Service Client in Eclipse →
Java: How to configure log4j.properties correctly – log4j Sample Program
In Java Project, with log4j it is possible to enable logging at runtime without modifying the application binary. The log4j package is designed so that these statements can remain in shipped code …
Read Article about Java: How to configure log4j.properties correctly – log4j Sample Program →
Java StringTokenizer and String Split Example + Split by New Line
How to Split a string using String.split()? Understanding the Java Split String Method. StringTokenizer() ignores empty string but split() won't. :) Let's get started. Java …
Read Article about Java StringTokenizer and String Split Example + Split by New Line →
Java: How to add “n” minutes to Calendar data object?
Very simple way to add "N" minutes to current time in Java. Java Code: Output: …
Read Article about Java: How to add “n” minutes to Calendar data object? →