Program : To check if Array contains an specific element. (Primitive value)

Using custom method Following is the Java code to check if your array contains any specific element. public class ArrayContains {…

tgugnani

Program : Calculate Average of Array Elements in Java

Following is the code to calculate the Average of elements in the Array. import java.util.Scanner; public class ArrayChallange { public…

tgugnani

Program : Sort an Array in Java

Following is the code to sort an int Array in Java in decreasing order. That means the highest will appear…

tgugnani

Arrays in Java

Primitive data type in Java can only store a single value of a particular type. Arrays are used to store…

tgugnani

Program: Fibonacci Series in Java

Fibonacci Series are number series in which next number is the sum of previous two numbers. For example, if we…

tgugnani

Program: Determining Prime Numbers in Java

We will see the code in Java of how to determine a prime number, and then we will extend the…

tgugnani

Control Flow : for, while and do-while loops in Java

In this post we will understand another category of control flow statements which are used to execute some part of…

tgugnani

Control Flow: Switch Statement in Java

Another way of controlling the flow of your program is with switch statement. Switch gives you an option to test…

tgugnani

Control Flow : If-then and If-then-else statements in Java

As we have now learnt about variables, operators and expression. Now we can dig into the first control statements for…

tgugnani

Creating New Bitnami Solr Instance on AWS.

Following are the steps to create a new EC2 Instance which has the Apache Solr Stack provided by Bitnami. Login…

tgugnani