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

If x = -5, then |x - 7| = A: -12 B: 2 C: 12 D: -2
in the following equation, which product is a diatomic molecule 2Na+2 HCl. 2NaCl+H
Why does the octopus make a " screen" ?
4b×3b-2b=102 what is b
Please explain how biotechnology can increase or decrease variation???
What is the degree measure of the acute angle formed by the hands of a 12-hour clock that reads exactly 1 o’clock? A. 15° B. 30° C. 45° D. 60° E. 72°
If the price of a computer was decreased from $1,000 to $750, by what percent was the price decreased?
Sectional rivalries leading up to the Civil War centered on what 3 issues?
(a + 2b + 3c) − (4a + 6b − 5c) is equivalent to: A. −4a − 8b − 2c B. −4a − 4b + 8c C. −3a + 8b − 2c D. −3a − 4b − 2c E. −3a − 4b + 8c
How do you solve the following equation:  a/9.05=8.2