0% found this document useful (0 votes)
4 views

Java Assignment

The document outlines a series of Java programming tasks, each with a specific objective such as displaying a welcome message, demonstrating command line arguments, and checking for Armstrong and prime numbers. Additional tasks include finding the LCM and GCD of two numbers, printing factorials using recursion, and working with arrays and user input. The document serves as a guide for practicing various fundamental programming concepts in Java.

Uploaded by

pexav44956
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Java Assignment

The document outlines a series of Java programming tasks, each with a specific objective such as displaying a welcome message, demonstrating command line arguments, and checking for Armstrong and prime numbers. Additional tasks include finding the LCM and GCD of two numbers, printing factorials using recursion, and working with arrays and user input. The document serves as a guide for practicing various fundamental programming concepts in Java.

Uploaded by

pexav44956
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Program I

Write a Java program to display Welcome message.


Program II
Write a Java program to demonstrate Command line
arguments.
Program III
Write a java program to check Armstrong Number.
Program IV
Write a java program to check prime number.
Program V
Write a java program to Display Prime Numbers between
Intervals.
Program VI
Write a java program to Find LCM of two Numbers.
Program VII
Write a java program to print factorial of a given number
using recursion.
Program VIII
Write a java program to find the GCD of two given number
using recursion.
Program IX
A program to illustrate the concept of class with Constructor
overloading.
Program X
Write a Java program to demonstrate Scanner (I/O Streams).
Program XI
Write a Java program to demonstrate Arrays.
Program XII
Write a java program which takes 10 numbers from user in an
array and print the smallest number, greatest number and
average of array.
Program XIII
Write a program in Java to find the sum of the given series:
S = a2 + a2 / 2 + a2 / 3 + …… + a2 / 10 .
Program XIV
Write a program to input a number and display the new
number after reversing the digits of the original number. The
program also displays the absolute difference between the
original number and the reversed number.
Program XV
Write a java program to create a simple calculator using
switch case.

You might also like