Write a class SequenceCheck with a public method sequenceCheck that takes one parameter arr of type int[] and returns true if 6, 9, 12
![Write a class SequenceCheck with a public method sequenceCheck that takes one parameter arr of type int[] and returns true if 6, 9, 12 Write a class SequenceCheck with a public method sequenceCheck that takes one parameter arr of type int[] and returns true if 6, 9, 12](https://realcoder.techss24.com/wp-content/uploads/2022/06/Write-a-class-SequenceCheck-with-a-public-method-sequenceCheck-that-takes-one-parameter-arr-of-type-int-and-returns-true-if-6-9-12.png)
Write a class SequenceCheck with a public method sequenceCheck that takes one parameter arr of type int[] and returns true if 6, 9, 12 present consecutively in the arr. The return type of sequenceCheck should be boolean. Assumptions: arr is never null Elements 6, 9, 12 are appear consecutiviely Here are examples: Cmd Args :…