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

if cosx=1/12 and sinx>0 find tan2x
What is the percentage increase from 200 to 280
how many times does 6 go into 312
How to find the area of a circle ?
During a recent winter, the ratio of deer to foxes was 7 to 3 in a town. If there was 210 foxes in the town, what was the number of deer in the town?
is uncover a base word or roots word. is kingdom a base word or roots word. is valuable a base word or roots word. is beautiful a base word or roots word. is di
Find the surface area of a rectangular prism with a length of 6.9mm, a width of 8.2mm, and a height of 14mm.
"Pilgrim progress" what does the town vanity symbolize?
what is the difference between closed-end credit and open-end credit
How does latitude affect climate