Write a java program:
In this problem, you will be given one slice of a scan from apatient as a series of 1’s and 0’s. The coordinate system of thescan is such that the upper left corner is (0, 0) and pairs arespecified in (row, column) order. [Note that (row, column) is NOTthe same as (x, y).] You will also be given a pattern thatcorresponds to the possible tumor.
The input will consist of two consecutive sequences of lines oftext containing 0’s and 1’s only. The first sequence contains thescan, while the second contains the possible tumor. Both scans andtumors will always
OR
OR