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
umka2103 [35]
3 years ago
12

Write a method that determines the total number of chars in each string of an array.

Computers and Technology
1 answer:
Serjik [45]3 years ago
8 0
The total number of chars in each string is basically the size of each string.

Using JAVA:

        String[] arr = {"hello", "my", "name", "is", "Felicia"};                int count = 0;        for(int i = 0; i < arr.length; i++) {            count = count + arr[i].length();            System.out.println("Characters in " + arr[i] + ": " + count);        }

Output: 
<span>Characters in hello: 5
Characters in my: 7
Characters in name: 11
Characters in is: 13
Characters in Felicia: 20</span>


You might be interested in
Columns are most useful for which tasks ?
amid [387]
Laying out newsletters and creating a visual appeal without images
5 0
3 years ago
For an alternative to the String class, and so that you can change a String's contents, you can use_________ .
mr_godi [17]

Answer:

c. StringBuilder

Explanation:

An alternative to the String class would be the StringBuilder Class. This class uses Strings as objects and allows you to mix and match different strings as well as adding, removing, implementing,  and modifying strings themselves as though they were similar to an array. Unlike the string class StringBuilder allows you to modify and work with a combination of strings in the same piece of data as opposed to having various objects and copying pieces which would take up more memory.

7 0
4 years ago
CP/IP over Ethernet supports basic frames with a total size of up to 1518 bytes (including both the message payload and headers)
Ne4ueva [31]

Answer:

I think you just add all the Bytes together

6 0
3 years ago
What does tiny ink link do?????
patriot [66]

Answer:

what is it

Explanation:

'tiny ink link'

8 0
3 years ago
Read 2 more answers
Maria would like to present data about the company's products to clients. Maria should _____.
Sav [38]

Answer:

Print the data in table format.

Explanatio

5 0
3 years ago
Read 2 more answers
Other questions:
  • If you could make any blog, what would it be about and why?
    9·1 answer
  • Why might location be important when searching for a job?
    10·2 answers
  • Complete the crossword puzzle.
    12·2 answers
  • Body paragraphs in a report have a first-line indent of _____ inch. *
    9·1 answer
  • Social media is an effective form of e-commerce. True False
    12·1 answer
  • Experienced students may serve as mentors if they are at least age 21 and have at least 3 years of post-secondary education. In
    5·1 answer
  • You are using a crimper to attach an RJ-45 connector to a Cat 6 UTP cable. Your company requires that all cabling follow the TIA
    14·1 answer
  • Stay at least _____ behind the vehicle ahead of you at all times.
    12·2 answers
  • What is the first step in finding a solution to a problem? Choose a solution. Think of options to solve the problem. Try the sol
    6·1 answer
  • Which of the following BEST describes a permissive software license?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!