Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How can i fix those errors // Study the definition of the method // method_7 //

ID: 3687680 • Letter: H

Question

How can i fix those errors

// Study the definition of the method
   // method_7
   // defined in the class Methods.
   // Define the following method so it returns a value which,
   // if passed as an argument to method_7,
   // causes method_7 to return the value "yes".
   public ArrayList inputForMethod_7() {
ArrayList input = new ArrayList();
input.add("yy");
input.add("eeee");
input.add("ssssss");
ArrayList output = new ArrayList();
output.add(method_7(input));
return output;
   }

   // Study the definition of the method
   // method_8
   // defined in the class Methods.
   // Define the following method so it returns a value which,
   // if passed as an argument to method_8,
   // causes method_8 to return the value "right".
   public ArrayList inputForMethod_8() {
ArrayList input = new ArrayList();
input.add("r");
input.add("iii");
input.add("ggggg");
input.add("hhhhhhh");
input.add("ttttttttt");
ArrayList output = new ArrayList();
output.add(method_8(input));
return output;
   }
  
   // Study the definition of the method
   // method_9
   // defined in the class Methods.
   // Define the following method so it returns a value which,
   // if passed as an argument to method_9,
   // causes method_9 to return the value true.
   public String inputForMethod_9_A() {
String output = method_9("malayalam") ? "true" : "false";
return output;
   }


   // Study the definition of the method
   // method_9
   // defined in the class Methods.
   // Define the following method so it returns a value which,
   // if passed as an argument to method_9,
   // causes method_9 to return the value false.
   public String inputForMethod_9_B() {
String output = method_9("hello") ? "true" : "false";
return output;
   }
  
}


   // Study the definition of the method
   // method_8
   // defined in the class Methods.
   // Define the following method so it returns a value which,
   // if passed as an argument to method_8,
   // causes method_8 to return the value "right".
   public ArrayList inputForMethod_8() {
ArrayList input = new ArrayList();
input.add("r");
input.add("iii");
input.add("ggggg");
input.add("hhhhhhh");
input.add("ttttttttt");
ArrayList output = new ArrayList();
output.add(method_8(input));
return output;
   }
  
   // Study the definition of the method
   // method_9
   // defined in the class Methods.
   // Define the following method so it returns a value which,
   // if passed as an argument to method_9,
   // causes method_9 to return the value true.
   public String inputForMethod_9_A() {
String output = method_9("malayalam") ? "true" : "false";
return output;
   }


   // Study the definition of the method
   // method_9
   // defined in the class Methods.
   // Define the following method so it returns a value which,
   // if passed as an argument to method_9,
   // causes method_9 to return the value false.
   public String inputForMethod_9_B() {
String output = method_9("hello") ? "true" : "false";
return output;
   }
  
}

// Study the definition of the method method 7 125 126 127 128 129 130 public ArrayList inputForMethod 7() { 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 public ArrayList inputForMethod 8) { // defined in the class Methods // Define the following method so it returns a value which, // if passed as an argument to method_7, // causes method 7 to return the value "yes" ArrayList input new ArrayList(); input.add("yy"); input.add("eeee); input.add("ssssss"); ArrayList output new ArrayList(); output.add (method (input)); return output; // Study the definition of the method //method8 // defined in the class Methods // Define the following method so it returns a value which, // if passed as an argument to method_8, // causes method_8 to return the value "right". 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 public String inputForMethod_9_A) 165 166 167 168 169 170 ArrayList«String> input = new ArrayList(); input.add("r"); input.add("iii"); input.add("ggggg"); input.add("hhhhhhh"); input.add("ttttttttt"); ArrayList output new ArrayList(); output . add (method. (input) ); return output; // Study the definition of the method //method9 // defined in the class Methods // Define the following method so it returns a value which, // if passed as an argument to method 9, // causes method 9 to return the value true string output return output; method-2( "malayalam") ? "true" : "false"; 172 173 174 175 176 public String inputForMethod_9_B) // Study the definition of the method //method9 // defined in the class Methods // Define the following method so it returns a value which, // if passed as an argument to method_9, // causes method 9 to return the value false string output return output; method-2( "hello") ? "true" : "false"; 178 179

Explanation / Answer

// Study the definition of the method
// method_7
// defined in the class Methods.
// Define the following method so it returns a value which,
// if passed as an argument to method_7,
// causes method_7 to return the value "yes".
    public ArrayList inputForMethod_7()
   {
       ArrayList input = new ArrayList();
       input.add("yy");
       input.add("eeee");
       input.add("ssssss");
       ArrayList output = new ArrayList();
       output.add(method_7(input));
       return output;
    }

   public String method_7()
   {
       return "aaa";
   }

// Study the definition of the method
// method_8
// defined in the class Methods.
// Define the following method so it returns a value which,
// if passed as an argument to method_8,
// causes method_8 to return the value "right".
    public ArrayList inputForMethod_8()
   {
       ArrayList input = new ArrayList();
       input.add("r");
       input.add("iii");
       input.add("ggggg");
       input.add("hhhhhhh");
       input.add("ttttttttt");
       ArrayList output = new ArrayList();
       output.add(method_8(input));
       return output;
    }

   public String method_8()
   {
       return "bbb";
   }

  
// Study the definition of the method
// method_9
// defined in the class Methods.
// Define the following method so it returns a value which,
// if passed as an argument to method_9,
// causes method_9 to return the value true.
    public String inputForMethod_9_A()
   {
       String output = method_9("malayalam") ? "true" : "false";
       return output;
    }

// Study the definition of the method
// method_9
// defined in the class Methods.
// Define the following method so it returns a value which,
// if passed as an argument to method_9,
// causes method_9 to return the value false.
    public String inputForMethod_9_B()
   {
       String output = method_9("hello") ? "true" : "false";
       return output;
    }

   public String method_9(String s)
   {
       return s;
   }

  
}

// Study the definition of the method
// method_8
// defined in the class Methods.
// Define the following method so it returns a value which,
// if passed as an argument to method_8,
// causes method_8 to return the value "right".
    public ArrayList inputForMethod_8()
   {
       ArrayList input = new ArrayList();
       input.add("r");
       input.add("iii");
       input.add("ggggg");
       input.add("hhhhhhh");
       input.add("ttttttttt");
       ArrayList output = new ArrayList();
       output.add(method_8(input));
       return output;
    }
  
   public String method_8()
   {
       return "ddd";
   }

// Study the definition of the method
// method_9
// defined in the class Methods.
// Define the following method so it returns a value which,
// if passed as an argument to method_9,
// causes method_9 to return the value true.
    public String inputForMethod_9_A()
   {
       String output = method_9("malayalam") ? "true" : "false";
       return output;
    }

// Study the definition of the method
// method_9
// defined in the class Methods.
// Define the following method so it returns a value which,
// if passed as an argument to method_9,
// causes method_9 to return the value false.
    public String inputForMethod_9_B() {
       String output = method_9("hello") ? "true" : "false";
       return output;
    }
  
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote