1. Engineering
  2. Computer Science
  3. can you please explain what is going on with the...

Question: can you please explain what is going on with the...

Question details
Can you please explain what is going on with the methods below in plain English.


boolean find1( String[] theList, String toFind) for ( int i = θ; ǐ theList . length; i += 1 ) { if ( theList[i].equals( toFind) return true; return false boolean find2( String theList, String toFind boolean foundfalse or ( int í í theList . length; i +# 1 ) if theList[i].equals( toFind)) found true shkmenis mean whet s the fnctio t does return found: public static boolean isSorted1 (int] arr)f for (int i : 1 < arr.length 1; i 1) if (arr[i] > arr[i]) return false; ) return true; public static boolean isSorted2(int[] arr) { 1ste arr d: < arr.lengt arr[i] > arr[j]) f return false; return true;
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution