Question: ANSWER IN JAVA PART 1 parameter art and four int parameters left, rightx, topy, We have declared a method called crop with one char[] and
ANSWER IN JAVA
PART 1

parameter art and four int parameters left, rightx, topy, We have declared a method called crop with one char[] and bottomy. TASK: Fill in the body of the crop method such that it returns the result of cropping art in the rectangle bounded by the corners (leftx, topy).(left, bottomy). (right, topy), and (rightx, bottony), inclusive, wrapped in a frame of asterisks (+). HINT: The top-left corner of art is the point (0,0), which is art[@][] HINT: The first dimension of art is the vertical dimension. For example, art() is the first row of art. Gollum ASCII art originally created by Shanaka Dias Sample Input: 18 18 15 a/ e J/.. . VILI Sample Output: *********** *;a/ e J/+ Write a program, test using stdin - stdout Time limit: 8 seconds Memory limit: 256 MB 1 static char(11) crop(charllll art, int leftx, int rightx, int topy, int bottomy) 2 // YOUR CODE HERE 3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
