Category Archives: Java Programming

Java Program Switch or Swap Arrays

Java Program Switch or Swap Two Arrays – In this program we will swap the given arrays a and b. How This Program Will Work? First of all we will check if the length that is size of the given two arrays is equal or not. If the size of arrays is equal then we can… Read More »

 74 total views,  7 views today

Creating New Box class in Java

Task: Write a Java program to create a new Box class in Java. Use three instance variables width, height and depth of type double. Write down two constructors. Default ( no-arg )constructor will intialize the Box class objects with 0.0 value for all instance variables. A parameterized constructor will be used to intialize the object… Read More »

 87 total views,  5 views today

Download and Install Java JDK and NetBeans IDE

Task: Download and Install Java JDK and NetBeans IDE – This Java programming tutorial will explain the step by step process of installing the Java JDK and NetBeans IDE cobundle. Java SE Development Kit and NetBeans IDE Installer What is NetBeans IDE? The NetBeans IDE is the Official IDE for Java 8. It is an… Read More »

 830 total views,  38 views today

Java Check Armstrong Number of N Digits Program

Task – Java Check Armstrong Number Program. This Java Programming Tutorial will explain the source code of Armstrong Number checking program. The Java program will ask you to enter an integer number (whole number). When you will enter a number, this Java Check Armstrong Number program will find whether the given number is an Armstrong… Read More »

 55 total views,  6 views today

Write and Execute Java Addition Program

Task: Write and Execute Java Addition Program. This Java Programming Tutorial will provide and explain the source code of a basic addition program in Java. The program will input two numbers from the user at run time. The Java program will calculate the sum of these two numbbers and will display the answer of addition.… Read More »

 16 total views,  2 views today

Using Recursion in Java Find Factorial of Number

Task: Write a program Using Recursion in Java Find Factorial of Number. The source code of Java program to find factorial of a given number using recursion is: /* Write a Java program to calculate factorial of a number. Use a recursive method. */ package recursivefactorial; /** * @author www.EasyCodeBook.com */ import java.util.Scanner; public class… Read More »

 18 total views,  3 views today