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 happened to Mohenjo-Daro and Harappa? (They're two ancient cities in ancient India)
He believed that while there is serious unemployment in our auto industry, we should not ________ foreign cars. (A) build (B) repair (C) review (D) import (E) c
how do you write fraction 9/10 as a decimaland how to convert fractions into decimals
se quiere embotellar 43,5 litros de leche en botellas de 0,750 de litro ¿cuantas botellas se necesitan?
A radio station transmits waves at a frequency of 120MHz an a speed of 300 million m/s. Calculate the wavelength.
how do i make 24 using the numbers 11 6 10 2?
algae do not cause disease or not
why did the citizens of Richmond, Virginia feel upset about the actions at Fort Sumter ?
How do tussock moths obtain energy in cellular respiration?
Which situation describes a correlation that is not a causal relationship? (1) Car color and number of car accidents(2) Hours spent studying and test score(3) A