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

helpppppppppppppppppppp please
Which one should I choose?
in today's pandemic,how can you protect our ozone depletion?​
2 Which statement is the best summary of paragraph 2? A As the narrator approaches Primrose Hill, he finds more signs of the dying Martians. B The narrator expl
HELP PLEASEREEEEEEEEE
In one sentence, explain how a writer can show that a noun is a proper noun.
Р + 02 = P4O6 balance the equation
Convert 2.88 x 10-12 into standard notation
The following transactions occurred regarding the Central Purchasing Fund, an Internal Service Fund. Record the entries for the transactions, and identify the f
PLEASE HELP ME <3 URGENT HELP NEEDEED was the great terror also known as the cold war for the soviet union ?