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

Conteste:¿Que aconsejaria usted a un cristiano que desea tener más fuerza para obrar elbresistir el mal?
13. State three roles of soil organic matter14. State four ways by which wind affects the growth of crops.15. State four roles of good soil aeration in crop gro
Why are we often advised not to eat too much of fat-rich foods?
terkait penerapan dan pemanfaatan media TIK, buatkan sebuah rancangan penerapan pada era new normal
Indicate and shortly discuss ways in which the media can promote unity in sports across different cultures.
PLEASEEE HELP ME I NEED TO EXEMPT FINALS PLEASE Find the surface area. Round to the nearest tenth. U 5 cm 15 cm- 20 cm 12 cm
6. What are the 7 functions ofLeadership?
assess your own position and experience regarding poor service delivary challenges in your community and close to your community
the price of a tie increased from 50 to 160 what was the percentage increase ​
3.4 of 64 kg - 1 /5of 120 kg 60 g 2​