Question: Write a method findMissingNum that takes two inputs: a positive integer n and an integer array which contains numbers from 1 to n. Some integer
Write a method findMissingNum that takes two inputs: a positive integer n and an integer array which
contains numbers from 1 to n. Some integer numbers in this range are missing in the array, you need
to write a Java program to nd those missing numbers in the array and print them out. If no number
is missing, print out \No number is missing!".
Example:
IMPORTANT: You are only allowed to use loops, the length(), charAt(int index) and equals(String other) methods
of Strings for this question. In particular, you are not allowed to use the Math library.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
