-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathMultiLineCommentsDemo.java
More file actions
28 lines (24 loc) · 913 Bytes
/
MultiLineCommentsDemo.java
File metadata and controls
28 lines (24 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public class MultiLineCommentsDemo {
/*
Based on business requirements, the end user is
allowed to retry a maximum of 3 login attempts.
Using the below constant, the same is going to be
controlled. If the requirement changes, then change
the below value
*/
static final int MAX_RETRY_ATTEMPTS = 3;
public static void main(String[] args) {
MultiLineCommentsDemo obj = new MultiLineCommentsDemo();
double totalArea = obj.calculateRectangleArea(24.5, 34.6);
System.out.println(totalArea);
}
/*
This method calculates the area of the rectangle based
on given length and width. The logic it is going to have
is multiply two given input method arguments and return
the same to the caller
*/
public double calculateRectangleArea (double length, double width) {
return length*width;
}
}