btopol5058 btopol5058
  • 04-07-2019
  • Computers and Technology
contestada

How many characters does the "short text" have?

Respuesta :

Branta Branta
  • 15-07-2019

Answer:

Total number of characters in "short text" is 10.

Total number of distinct characters is 8.

Explanation:

List of characters in "short text":

s,h,o,r,t, ,t,e,x,t - 10

Set of distinct characters is:

s,h,o,r,t, ,e,x - 8

The length can be determined programmatically in Java using String.length() api.To determine distinct characters, individual characters can be added to a Set and then the set size can be computed.

Answer Link

Otras preguntas

Why did Elbridge Gerry of Massachusetts redraw the congressional districts in his state?
Which one of the following lines is written in iambic pentameter? A. "And sorry I could not travel both" B. "When the proofs, the figures, were ranged in column
A number s is subtracted from seven. When the result is divided by three, the quotient is two. What is the number?
You create 15 centerpieces for a party in 5 hours. a) what is the unit rate? b) how long will it take you to make 42 centerpieces? Help Please :)
how many wars did edward I win
What is the city-state of Athens sometimes called?
0.2(x+50)-6=0.4(3x+20)
will enyone help me answer this question please
Massachusetts has a 9% sales tax. Timothy bought a Toro lawn mower and paid $36 sales tax. What was the cost of the lawn mower before the tax?
when you open a solid room air freshener, the solid slowly loses mass and volume. how do you think this happens?