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

idk what i'm doing :(
What is the difference (4x2 - 12x +6) and (10+ 3x – 2x?)?
Write the slope-intercept form of an equation for the line passing through -2, 8 and (-4, -4)
2. The measure of an angle is 114°. What is the measure of its supplement?
Who wants to wait for the agency to contact them before they go to the next country?
Whoever can put this in the comments I mean the answer get the free blaringly Supreme Mike if your first one to answer you get apprised like a crown
WILL GIVE BRAINILEST PLZ DON'T WRITE ANYTHING IF U DON'T KNOW THE ANSWERWhat was the message in Andy Warhol’s art?(t's writing not just one answer btw)
Where were your internal organs is torrid after death in ancient Egypt
What is "Of Plymouth Plantation" by William Bradford about? Why did it happen? three or four sentences to summarize
CAN SOMEONE PLEASE PLEASE HELP ME WITH PART A,B,AND C!!!!!