Java Programs: DisplayPattern & Rectangle
DisplayPattern.java — prints a specific pattern on the screen.
Rectangle.java — calculates and displays the area and perimeter of a rectangle.
🧠 Description
This Java program prints a simple pattern made up of the letters J, A, and V, forming the word JAVA in a stylized way. It demonstrates how to use multiple System.out.println() statements to align text in a console.
- Rectangle.java Description
This program calculates and prints the area and perimeter of a rectangle. It demonstrates simple arithmetic and variable handling in Java.
Formula Used
Area = width × height
Perimeter = 2 × (width + height)