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
podryga [215]
3 years ago
13

Consider the following method, which is intended to count the number of times the letter "A" appears in the string str.

Computers and Technology
1 answer:
sasho [114]3 years ago
7 0

The instruction that should replace /* missing code */ so that the method countA works as intended is (e)  str = str.substring(pos+1);

<h3>Methods</h3>

The program is an illustration of methods (or functions)

Methods are blocks of program statements that are executed when called or evoked

For the method to return the number of character A in a string, the loop body must check if the current character is A.

This is done using the substring method of a string

The syntax of this is: str.substring(pos + 1).

Where str represents the string, and pos + 1 represents the character index

Hence, the missing instruction is str = str.substring(pos+1);

Read more about methods at:

brainly.com/question/14284563

You might be interested in
Write a program to generate the 1,8,27,64,125,226,343,512,729,1000 series.​
ehidna [41]

Answer:

class series

{

public static void[]

main[string args[]]

{

into, I, n=4;

for(i=1;i<=n;i++)

{

d=i*i*i;

system. out. print(d+",");

}

}

}

Explanation:

java?

4 0
3 years ago
Your office printer was working earlier in the day but is no longer printing any documents. Pre-existing workstations are manual
VARVARA [1.3K]

Answer:

I think it is either A or B

Explanation:

3 0
3 years ago
You're in the process of downloading some email messages when your antivirus software displays an alert. you assume the software
Y_Kistochka [10]
Please provide additional information in order to provide an answer to your question.
7 0
3 years ago
Just as you can learn to drive a car without knowing much about car engines, you can learn to use a computer without understandi
Murrr4er [49]
Yes you can but it helps to understand the technical details so if there is ever an issue you could identify and fix said issue easier.
8 0
3 years ago
When is it not a good idea to remove a program from your computer by simply deleting its directory?
hodyreva [135]

Hi!

Usually computer programs have a lot of settings that, if not standardized, would make it super difficult to communicate with the operating system or other programs. Because of this, programs and the Windows Operating System use a special Registry system in order to standardize crucial settings for both applications and the operating system itself.

If you were to remove a directory to try to uninstall a program, you're leaving behind the files in the registry (don't worry though, it won't affect anything in terms of what your computer does) which can sometimes eat up space if there's enough of them.

Therefore, I would say your best bet is C. If the program adds information to the operating system.

I hope my answer helped!

5 0
3 years ago
Other questions:
  • Which file is used to determine which tty devices the root user is allowed to log in to?
    8·1 answer
  • Why process scheduling is needed in a uni-processor system?
    12·1 answer
  • A software firm is going to develop an application for the automation of various office activities within an organization. In th
    13·1 answer
  • c++ Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value is c
    14·2 answers
  • personal digital assistants are handheld devices that serve as personql information managers. what is another term used to refer
    11·2 answers
  • Which statement describes Augmented Reality (AR) technology?
    12·1 answer
  • Number the steps to describe how Tristan can complete
    6·2 answers
  • Anyone want to talk? it can honestly be about any subject :)
    5·1 answer
  • Staff in several departments interact with the order processing system and will be affected by any
    9·1 answer
  • PLEASE HELP!
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!