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

distinguish between ovulation and menstruation
Houses with carpet are much quieter than houses with tile or hardwood floors because of sound wave A) absorption. B) diffraction. C) reflection. Eliminate D)
The Twelve Tables was ancient writing that formed the foundation for Roman A) laws. B) religion. C) health code. D) military protocol
The most common dangerous weapon is: a. a belt. b. a flyswatter. c. a bat. d. the hand.
find the zeros of y = 3x^2+3x
The energy consumed by organisms remains constant at all trophic levels. a. .True b. .False
How are hot spots used to track plate motion
My dog Picasso was _______ after I gave him a bath. Which of the following words or phrases goes best in the blank? less dirty least dirty less dirtier least di
what is an example of an event that caused long-term historical events
5 1/2% as a fraction in simplist form