Question: I don't know where is wrong. POD 14: Go Fish (Methods & arrays) - Week 5.2 / Reset to Starter Code 5 points possible 1.

 I don't know where is wrong. POD 14: Go Fish (Methods& arrays) - Week 5.2 / Reset to Starter Code 5 pointspossible 1. POD: Go Fish Saved Details of findAndRemoveCard () method ====Methodfor you to complete==== * Looks for a card (string) in aplayer's hand (string array). If found, it replaces it * with an"X" and returns "FOUND". If not, it returns "NOT FOUND". * @param

I don't know where is wrong.

POD 14: Go Fish (Methods & arrays) - Week 5.2 / Reset to Starter Code 5 points possible 1. POD: Go Fish Saved Details of findAndRemoveCard () method ====Method for you to complete==== * Looks for a card (string) in a player's hand (string array). If found, it replaces it * with an "X" and returns "FOUND". If not, it returns "NOT FOUND". * @param cardToFind String card to look for, and if found replace with an "X" @param cards InHand String array of all cards (strings) in hand @return String "NOT FOUND" if card is not found in hand, or "FOUND" if it is. Input: Parameters The method will take the following parameters: a string (cardToFind): String card to look for (within the following string array), and if found replace with an "X" a string array (cards InHand): String array of all cards (strings) in hand Processing Look through the string array (cards InHand) for the string provided (cardToFind). If you find it, replace it with an "X" and return "FOUND". If you do not find the string (cardToFind), return "NOT FOUND" Output: Return value The method will return the string "NOT FOUND" if card is not found in hand, or "FOUND" if it is. Sample method input/output: POD 14: Go Fish (Methods & arrays) - Week 5.2 / 1. POD: Go Fish Reset to Starter Code 5 points possible Saved Look through the string array (cardsInHand) for the string provided (cardToFind). If you find it, replace it with an "X" and return "FOUND". If you do not find the string (cardToFind), return "NOT FOUND". Output: Return value The method will return the string "NOT FOUND" if card is not found in hand, or "FOUND" if it is. Sample method input/output: findAndRemoveCard() Input arguments findAndRemoveCard() Output (return values) cards InHand array after leaving method G5 {R2, 73, G5,B4} FOUND {R2, 43, X, B4} B7 {R2, 73, G5,B4} NOT FOUND {R2, 73, G5, B4} Run Tests v Grading 5 New Full Screen * 1- 2 POD.Java /** * CSCI 1110 1. PUD UUTISIT Saved POM PODIE POD.Java New 1 Exit Full Sc '6 import java.util.Scanner; 8 public class POD { /** * ====Method for you to complete==== * Looks for a card (string) in a player's hand (string array). If found, it replaces it * with an "X" and returns "FOUND". If not, it returns "NOT FOUND". * @param cardToFind String card to look for, and if found replace with an "X" * @param cardsInHand String array of all cards (strings) in hand * @return String "NOT FOUND" if card is not found in hand, or "FOUND" if it is. public static String findAndRemoveCard(String cardToFind, String[] cardsInHand) { vau = WNPOUCO vou wNo covou WNPOO // BEGIN WORK HERE for(int i=0;i 0) { System.out.print(cardsInHand[i]+" - "); System.out.println(cards InHand[n-1]); public static void readInCards (String[] cardsInHand) { for (int i=0; i Looking for: R3 FOUND

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!