X44: sum67

Write a function in Java that takes an int array as its parameter. It should return the sum of the numbers in the array, except ignore sections of numbers starting with a 6 and extending to the next 7 (every 6 will be followed by at least one 7). Return 0 for no numbers.

Your Answer:


Practice a different Java exercise


Your feedback will appear here when you check your answer.