Find the Area and Perimeter of Rectangle – Java Program June 14, 2020September 2, 2018 by Sumit JainA rectangle is a quadrilateral with four right angles.Say rectangle is given with side’s length A and BArea of Rectangle = A * BPerimeter of rectangle = 2(A+B)Code: Run This CodeOutput:Area of Rectangle: 12.0 Perimeter of Rectangle: 14.0 Related Posts:Find the Area of Triangle using base and height - Java ProgramFind the Circumference of a Circle - Java ProgramGenerate all the strings of length n from 0 to k-1.Print My IP Address – Java CodePrint all subarrays using recursionPrint all middle elements of the given matrix/2D array.Number of Contiguous Parking AreasZigZag OR Diagonal traversal in 2d array/Matrix using queueCount number of pairs which has sum equal to KFind no of reverse pairs in an array which is sorted in two parts in O(N)Replace array elements with maximum element on the right.Check if given number is Prime - O(√N) Solution – Java ProgramLongest substring with at most K unique charactersBubble Sort and Optimized Bubble Sort- Java ImplementationCheck if Arithmetic Expression contains duplicate parenthesis