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

Help help plizzzzz!!! Due today!!!!
Suppose the Fed raises the required reserve ratio, a move that is normally thought to reduce the money supply. However, banks find themselves with a reserve def
how to simplify y- 3/3 +12
Which one is correct? A comma can be used to: separate items in a series separate an independent clause from a dependent clause separate two dependent clauses s
Answer the question below
Solve for t 3t-9 <6 and -3t <12
you take 6 steps forward and 8 steps backwards how many steps have you taken? It’s a subtracting integer question. So would it be 6-(-8)?
2) A player took 12 shots and made 9. What percent did he make?
Which atmospheric layer prevents meteroids from reaching earths surface
What is the process of slacking? Allowing hot food to cool Allowing frozen food to thaw safely Allowing employees to come in late Allowing frozen food to thaw o