1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
RSB [31]
4 years ago
3

5. What happens when more than one keyword appears in a string? Consider the string "My mother has a dog but no cat." Explain ho

w to prioritize responses in the reply method. Did this impact any changes you made to the getResponse method?
Computers and Technology
1 answer:
disa [49]4 years ago
8 0

Answer:  

Please see below  

Explanation:  

When this is the case, the prioritizing will be done on the basis of whichever keyword came first in the string - it is that particular method that will be called. Hence, if you wish to prioritize the method available for pets over the method available for family, you will need to place it as such in the source code - and this is how the getResponse method will be impacted.

You might be interested in
Who is Carl Thompson?
pishuonlain [190]
Carl Thompson was a well know Jazz player back in the mid 1900s
7 0
3 years ago
Deep water can ____.
Hoochie [10]
D. Stall your vehicle
5 0
3 years ago
Read 2 more answers
Hi guys question true or false
cestrela7 [59]

Answer:

FALSE.

Explanation:

You may not use copyright material, even if you print or download it.

The only exception is if you have permission.

3 0
3 years ago
Write a program whose inputs are three integers, and whose outputs are the largest of the three values and the smallest of the t
arlik [135]

Answer:

import java.util.*;

public class Main

{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

    System.out.print("Enter the first number: ");

    int n1 = input.nextInt();

    System.out.print("Enter the second number: ");

    int n2 = input.nextInt();

    System.out.print("Enter the third number: ");

    int n3 = input.nextInt();

 System.out.println("largest: " + LargestNumber(n1, n2, n3));

 System.out.println("smallest: " + SmallestNumber(n1, n2, n3));

}

public static int LargestNumber(int num1, int num2, int num3){

    int largestNum = 0;

    if(num1>=num2 && num1>=num3)

        largestNum = num1;

    else if(num2>=num1 && num2>=num3)

        largestNum = num2;

    else if(num3>=num1 && num3>=num2)

        largestNum = num3;

       

    return largestNum;

}

public static int SmallestNumber(int num1, int num2, int num3){

    int smallestNum = 0;

    if(num1<=num2 && num1<=num3)

        smallestNum = num1;

    else if(num2<=num1 && num2<=num3)

        smallestNum = num2;

    else if(num3<=num1 && num3<=num2)

        smallestNum = num3;

       

    return smallestNum;

}

}

Explanation:

Create function called LargestNumber that takes three parameters, num1, num2, num3. Find the largest number using if else structure among them and return it. For example, if num1 is both greater than or equal to num2 and num3, then it is the largest one.

Create function called SmallestNumber that takes three parameters, num1, num2, num3. Find the smallest number using if else structure among them and return it. For example, if num1 is both smaller than or equal to num2 and num3, then it is the smallest one.

Inside the main, ask the user for the inputs. Call the functions and print the largest and smallest.

8 0
3 years ago
3) Paul enjoys working at Small World
BabaBlast [244]

Answer:

Environment

Explanation:

He finds the environment stimulating, hence why he enjoys working there.

3 0
3 years ago
Read 2 more answers
Other questions:
  • Can using interior light help improve a drivers visibility at night
    9·1 answer
  • Suppose you use Batch Gradient Descent to train a neural network and you plot the training error at every epoch. If you notice t
    7·1 answer
  • What does JPEG stand for?
    15·2 answers
  • Which one of the following characteristics or skills of a ScrumMaster are closelyaligned with coaching?Select one:
    5·1 answer
  • A counter is a tool used to measure the number of times people visit a Web site. true or false?
    12·1 answer
  • Imagine you are asked to set up a network for connecting 50 computers in an office environment. Discuss the type of network you
    13·1 answer
  • Which statement about bump mapping and normal mapping is true?
    9·1 answer
  • What differentiates Accenture's Intelligent Platform Services (IPS) when our clients are making a decision to partner with a ser
    13·1 answer
  • Which statement about sample size is true?
    15·1 answer
  • Which code snippet is the correct way to rewrite this in Semantic HTML?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!