Category: JAVA

Dynamic Search Filter Using Querydsl [Spring Boot]

In this tutorial we will be creating a dynamic search filter. For any field it will generate sql query dynamically from the provided search parameter. We will generate a Dynamic JPA query for Branch entity class from the search parameter provided. Branch.class @Getter@Setter@Entity@Table(name = "BRANCH")public class Branch implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional

Ascending Descending Order Java

Ascending order is the order in which the number starts from lowest and move to the greatest, whereas Descending order is the order in which the number start from the greatest and move toward the lowest. Check out the simple java code for ascending and descending of a give set of numbers. Ascending Descending Order

User defined methods in java

User defined methods in java: Functions are called methods in java. Like in C, java programming has similar user defined methods. There are basically four types of user defined methods. They’re: Methods with parameter and with return type Methods with parameter and without return type Methods without parameter and with return type Methods without parameter

Break and Continue Statement in Java

Break and continue statement in java : Like goto statement in c, there is break and continue statement to transfer control in the program. Whenever certain condition matches in the code, you may won’t to transfer your code’s flow to some other parts of the code. In such scenario, we use break and continue statement.

Simple application using Java Collection Framework

Here we are going to develop Simple application using Java Collection Framework. Before you begin with this tutorial, make sure you’ve gone through previous_tutorial. In this tutorial, I’ve built simple console application that demonstrate how you can use collection in your project. When you’re done with this tutorial, you’ll have something like this: Simple application

Java Collections Framework

The Java Collections Framework is a set of classes and interfaces that implement commonly reusable collection data structures. A collection, as its name implied, is simply an object that holds a collection (or a group, a container) of objects. Each item in a collection is called an element. A framework, by definition, is a set of interfaces that force you