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

a local hamburger shop sold a combined total of 637 hamburgers and cheeseburgers on Tuesday.There were 63 fewer cheese burger sole than hamburgers. how many bur
what is the transfer of electrons in Al + Cl = AlCl3
11. In 2010, the population in the United States will be about 3.09x10'. Spending for health care will beabout $8754 per person. About bow much will the US spen
2. An object experiences an acceleration, g, when it is on the surface of a planet of radius R. What will be the acceleration on the object after it has been mo
Need help with this math problem
Please answer this correctly
Is everyone’s heart biologically the same?
A 0.72-m long string has a mass of 4.2 g. The string is under a tension of 84.1 N. What is the speed of a wave on this string?
Below is a piece of Kulliwari Art created by Michael J. Connolly, titled The Rainbow Serpent. Calculate the area of the image covered by the snake. The dimensio
What did the house in American activists committee do