Embed presentation
Download to read offline
![In Java ,
Create a function, findNum(), that determines if a number is in an array. The function takes in an
array of integers, int[] and a int number to find, and returns a boolean, true or false.
Create a function, removeDuplicates(), that removes duplicates from a sorted array. The function
takes in an array of integers, int[], and returns a new array with only unique integers.](https://image.slidesharecdn.com/injavacreateafunctionfindnumthatdeterminesifa-230316121108-1d0a6eca/85/In-Java-Create-a-function-findNum-that-determines-if-a-pdf-1-320.jpg)
The document describes two Java functions: findnum() checks if a specific integer exists in an array and returns a boolean value. The second function, removeduplicates(), removes duplicates from a sorted array and returns a new array containing only unique integers. Both functions operate on arrays of integers.
![In Java ,
Create a function, findNum(), that determines if a number is in an array. The function takes in an
array of integers, int[] and a int number to find, and returns a boolean, true or false.
Create a function, removeDuplicates(), that removes duplicates from a sorted array. The function
takes in an array of integers, int[], and returns a new array with only unique integers.](https://image.slidesharecdn.com/injavacreateafunctionfindnumthatdeterminesifa-230316121108-1d0a6eca/85/In-Java-Create-a-function-findNum-that-determines-if-a-pdf-1-320.jpg)