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

Which aspect of the excerpt from The Way to Rainy Mountain best exemplifies how American Indian culture and themes can be passed down and changed over time?
A story's exterior narrative is the
Which is a theme of "A Psalm of Life"? A. All people experience birth and death alone. B. Life is nothing but an empty dream. C. Children are the only path
Terrance __________ watch the movie, but only after he completes his chores. a. can b. may
how many years is a light year
Accurately describe a major difference between an essays introduction and its conclusion
To which principle of government is Montesquieu's statement MOST directly related?
What changes in a rainforest would cause a decrece?
How do you put guarantee in a sentence?
Roger always purchased insurance for the 10 years he owned an expensive speedboat. since he never had an accident the premiums he paid were