Given an array of int s, return true if the array contains two 7s next to each other, or there are two 7s separated by one element, such as with {7,1, 7}. Otherwise, return false. Your Answer: Feedback Your feedback will appear here when you checl 1 public boolean has77(int[] nums) 2{ your answer. 4} 5

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question
X63: has77
Given an array of int s, return true if the array contains two 7s next to each other, or there are two 7s separated by one
element, such as with {7, 1, 7}. Otherwise, return false.
Your Answer:
Feedback
Your feedback will appear here when you check
1 public boolean has77 (int[] nums)
2 {
your answer.
4}
Transcribed Image Text:X63: has77 Given an array of int s, return true if the array contains two 7s next to each other, or there are two 7s separated by one element, such as with {7, 1, 7}. Otherwise, return false. Your Answer: Feedback Your feedback will appear here when you check 1 public boolean has77 (int[] nums) 2 { your answer. 4}
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT