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 the bake sale the students earned $48.81. If there were 3 students how much did each student earn
Which statement is correct about the reaction that occurs between calcium chloride and sodium carbonate? It is a single replacement reaction because two new c
What's five ways that John F. Kennedy impacted the USA for the better? (Explain.) Thank you.
which function has an axis of symmetry of x=-2
How many students in the marching band are girls
A. Eating a balanced diet is important for good health. B. Benefits of eating a balanced diet. 1. Eating a balanced diet decreases the risk of diseases such as
i need help with this proof i am struggling w geometry...
pls help !!! What was true about president Wilson’s fourteen points
I am greater than 15 I am less than 21 I have 8 ones
find the sum of 7/13 and 11/26.