title: Find and search for a double in an array and return its indices? Is this an array element swap method?)
body: <p>This is my first question. These 2 create method questions, were on a quiz I took. Create a method, to find a radius, double r. Return the array and its indices, from the 2d circles array. If you can't find double r, return {-1,-1}.**</p>
  
  <pre><code>public int[] void findCircleWithRadius(Circle[][] circles, double r) {
  
      for(int i = 0; i&lt;circles.length-1; i++) { //search the row
          for(int j = 0; j&lt;circles[0].length; j++) { //search each column
              Circle temp = circles[i][j];
              if(temp == r) r = temp; 
              else return "{-1,-1}";
          }
       }
  
       return circles.indexOf(r);
  }
  </code></pre>
  
  <p>Create a method to swap the circles, using the findCircleWithRadius method.</p>
  
  <pre><code>public static void swapCircles(Circles[][] circles, double r1, double r2) {
  
      Circle radius1 = r1.findCircleWithRadius();
      Circle radius2 = r2.findCircleWithRadius();
      Circle temp2 = radius2;
  
      radius2 = radius1;
      radius1 = temp2;
  }
  </code></pre>