public class Rect { public static double perimeter(int length, int width) { // Complete this method }}
Answer
public class Rect { public static double perimeter(int length, int width) { return 2*(length + width); }}
Please let me know if you have any doubts Please upvote this answer. Thanks!!