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

Graph the line using intercepts: 4x-3y=12
what is the simplest square root of 1345? no decimals please
What is a communicable disease ?
What is a communicable disease ?
sam cut a pie into equal parts.There are 3 slices left.The angle measures for 3 slices is 72.how many slices did he cut?
how might a scientist a determine  whether trait sex-linked by observing the offspring of several genetic crosses
how might a scientist a determine  whether trait sex-linked by observing the offspring of several genetic crosses
What's a good slogan for a dietitian (have dietitian in it) ?
What is the main religion of Latin america
A number cube is rolled 24 times and lands on 2 four times and on 6 three time. Find the experimental probability of not landing on a 6