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

What currently practiced ideology has its roots in the French Revolution?democracycapitalismMarxismsocialism
why does Washington think thousands of young people have attended Tuskegee Institute since it opened
at age 12 what was his new job Ludwig van Beethoven a stormy life
Find the missing properties of u, h, and x for water at 120◦ c, v = 0.5 m3 /kg b. water at 100◦ c, p = 10 mpa c. nitrogen at 100 k, x = 0.75 d. nitrogen at 200
One runner passes another runner traveling in the same direction on a hiking trail. the faster runner is jogging 4 miles per hour faster than the slower runner.
rewrite the equation in graphing form. f(x)=x^2+6x+15
Which President came up with a solution for long shipping problems?
how does DNA work ? answer in 1 min
The acid-dissociation constant at 25.0 °c for hypochlorous acid (hclo) is 3.0 ⋅ 10−8. at equilibrium, the molarity of h3o+ in a 0.055 m solution of hclo is ____
I need help!!!PLZ!!!!!