Author Archive

Java : While loop

 

The definition of while loop is something like below and the code which is inside the curly braces {}  executes until the conditional expression becomes false

Another example is if an external service or method is returning collections which you want to …

Java : if else statement

if-else statement 

The if-else statement is basic control flow statement for all programming languages, if you want to execute block of code based on the evaluation of certain condition is true then you can use if-else statement

The below code …

Create a class in Eclipse

In my previous article, I have explained how to create Java package using Eclipse, In this article,  I am going to showcase you how to create a new Java class in Eclipse, you can create a new class by using Eclipse …

Create a Java package in Eclipse

 

In my previous article, I have explained how to create Java Project using Eclipse, In this post,  I am going to showcase you how to create a java package in Eclipse, The Java Package is nothing but a logical …

Create a java project using Eclipse

 

In my previous article, you have seen how to create a simple java program using notepad editor, but you can not write complex logic using notepad and it is hard to remember java syntax’s so, you must have some development …

Java : Write your first java program

 

In this article, I am going to explain to you how to write simple java program, before writing your first java program you need to setup java environnment on your local machine, if you are not already set up …

Java LinkedHashSet

 

In my previous article, I have explained how HashSet works, the  HashSet does not support maintaining order but The LinkedHasSet supports so,  if you want to retrieve whatever order you have stored then you can very well use LinkedHashSet

The LinkedHashSet class extends HashSet …