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

At 5:00 p.m., Antonio turned on the oven. While the oven preheated, the temperature in the oven increased from 72°F to 400°F over a 10-minute period. The oven r
Solve the equation by completing the square. 6x^2-12x-16=2
What does X =? 5x−2=−10−3x
what is the solution for X in the equation 4x - 3 + 5 = 2x + 7 - 8xA. X = 2B. X = -2C. X = 1/2D. X = -1/2​
We can think of electromagnetic waves as a kind of ongoing message being sent out by the universe. Humans are able to naturally access only a portion of this me
quienes quieren ser amigos estoy doreb de esa manera pregunto: p XD :>
Whats are some reason Stanley family has bad luck
David drove 96 mph in 8h. what is the unit rate???
Tell me what the Civil Rights movement was and WHY was it significant to the story of the United States in the last 60 years?
the seventh man as a boy pleasee find evidence from a text