0% found this document useful (0 votes)
26 views1 page

Java Programming Assignment Guide

The document outlines a Java assignment consisting of various programming tasks. These tasks include comparing numbers, calculating areas of shapes, printing student data, evaluating expressions, and implementing loops for specific outputs. Additional exercises involve number classification, prime checking, and basic arithmetic operations.

Uploaded by

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

Java Programming Assignment Guide

The document outlines a Java assignment consisting of various programming tasks. These tasks include comparing numbers, calculating areas of shapes, printing student data, evaluating expressions, and implementing loops for specific outputs. Additional exercises involve number classification, prime checking, and basic arithmetic operations.

Uploaded by

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

Java Assignment

[Link] 2 variables and print which is the greater?


[Link] method print the area of
[Link]
[Link]
[Link]
[Link]
[Link] Students data using method
4.10.
If
x = 2
y = 5
z = 0
then find values of the following expressions:
a. x == 2
b. x != 5
c. x != 5 && y >= 5
d. z != 0 || x == 2
e. !(y < 10)

[Link] a Java program to display the first 10 natural numbers


[Link] a program to find maximum between three numbers
[Link] a program to check whether a number is negative, positive or zero
[Link] a program to check nos is even
[Link] 1-100 if nos is divisible by 3 then print "fizz", if the no is divisible by
5 then print "Buzz"
if no is divisible by 3 & 5 then print fizzbuzz
[Link] a program to print right angle traingle using for loop
[Link] a program to swap 2 nos
[Link] a program to print Hello Java 5 times using for loop
[Link] a program to check no is prime or not?
[Link] a program to reverse a no
15. Write a Java program to print the sum (addition), multiply, subtract, divide
and remainder of two numbers.

You might also like