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

A lender will verify and carefully consider your income before approving you for a loan because _____.
What was the main objective of the North African Campaign ​
Europeans first arrived in latin america during which time period?​
find the slope of the line that passes through the points (4,10) and (6,9)
Help I need to put them in the right boxes!!
When did newton publish his laws of motion
Will mark BRAINLIEST!! — Point H is the circumcenter of triangle DEF. Which must be true? Check ALL that apply. See image.
Where are the challenges of human interactions?
What is the purpose of the pericardial sac that surrounds the heart in mammals
Jenna bought 5 pounds of apples for $6.85. What is the unit price per pound apples