Blog

Insights, tutorials, and thoughts on web development and technology.

Program : Calculate Average of Array Elements in Java

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 static Scanner scanner= new Scanner(System.in);...

May 28, 2017 · Tushar
Program : Sort an Array in Java

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 first and the smallest will be in last. package info.FiveBalloons.Examples; import java.u...

May 27, 2017 · Tushar
Arrays in Java

Arrays in Java

Primitive data type in Java can only store a single value of a particular type. Arrays are used to store multiple values of a similar type into a single variable. Let's straight away see an example of...

May 27, 2017 · Tushar
Program: Fibonacci Series in Java

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 consider our first two numbers as 0 and 1, then our fibonacci series will look like. 0 1...

May 27, 2017 · Tushar
Program: Determining Prime Numbers in Java

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 same code to print prime number series till 100. A number is prime if it is divisible only by itself and...

May 26, 2017 · Tushar
Control Flow : for, while and do-while loops in Java

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 your code multiple times until the condition is met. for loop To understand the for...

May 26, 2017 · Tushar
Control Flow: Switch Statement in Java

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 the range of your value and depending on the value you can execute a particular case. F...

May 26, 2017 · Tushar
Control Flow : If-then and If-then-else statements in Java

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 Java. Control Statements defines the control of your program and gives you the abi...

May 26, 2017 · Tushar
Creating New Bitnami Solr Instance on AWS.

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 to your AWS console, and go to EC2 Management Console. Click on the Button "Laun...

May 25, 2017 · Tushar