Category Archives: Java Programs Using Loops

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 »

Loading

Find Second Largest Number in Java Array

Task: Write a Program to Find Second Largest Number in Java Array. Do not use sorting. Use only one loop. Java Source Code To Find Second Largest Number in Java Array /* * Write a Java program to find second largest in an array with only ONE LOOP, that is without sorting. */ package secondlargest;… Read More »

Loading

Java Program to Count Digits of Number Using While Loop

Task: Write a Java Program to Count Digits of Number The source of Java Program to Count digits of a number input by the user at run time is: /* * Write a Java program to input a number and count its digit */ package countdigits; /** * @author www.EasyCodeBook.com */ import java.util.Scanner; public class… Read More »

Loading

Java Program To Check a Number is Prime or Composite

Task:Write a Java Program To Check a Number is Prime or Composite The Source code for Java Program to input a number and check whether it is prime number or composite /* Write a Java program to input a number and check it whether it is prime or composite number. */ package primenocheck; /** *… Read More »

Loading