0% found this document useful (0 votes)
4 views2 pages

Java Practical List 1

The document is a practical list of Java programming exercises aimed at beginners. It includes tasks such as displaying 'Hello World', creating patterns, performing basic arithmetic operations, and implementing control flow statements like loops and switch cases. Additionally, it covers the use of constant variables and keywords like break and continue.

Uploaded by

vrajpatelmyindia
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 views2 pages

Java Practical List 1

The document is a practical list of Java programming exercises aimed at beginners. It includes tasks such as displaying 'Hello World', creating patterns, performing basic arithmetic operations, and implementing control flow statements like loops and switch cases. Additionally, it covers the use of constant variables and keywords like break and continue.

Uploaded by

vrajpatelmyindia
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/ 2

Java Practical List - 1

(1) Write a java program to display "Hello World".

(2) Write a java program to display your information.

(3) Write a java program to display some patterns using system.out.println().

* 1 4

** 12 33

*** 123 222

**** 1234 1111

(4)Write a program to display values of different variables.

(5)Write a program to perform adition,sub and multiplication.

(6)Write a program to make simple calculator using if...else statement.

(7)Write a program to display numbers from 1 to 10 using for loop.

(8)Write a program to display 1 to 5 numbers using while loop.

(9)Write a program to display 1 to 5 numbers using do...while loop.

(10) Write a program to display day name on number using switch case statement.

(11) Write a program to use constant variable.

(12) Write a program to use break keyword.

(13) Write a program to use continue keyword.

(14) Write a program to convert celsius to fahrenheit temperature value

F = (C * (9/5))+32.

You might also like