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

PLEASE HELP I GIVE THANKS
Mrs.Henderson had 7/12dozen eggs in her refrigerator.Then she used 1/6 dozen eggs to make a cake.What fraction of a dozen is left?
a antonym for biosphere
Solve the equation -10 + 3x + 5x = -56 ? ??
PLEASE HELP I GIVE THANKS
what are 2 examples of ionic compound?
What statement best describes a republic?
A standard coffee mug has a capacity of 16 fluid ounces. If Annie needs to fill 26 mugs with coffee, how many total quarts of coffee does she need?
as an allied health worker the single most important thing you can do to prevent the spread of disease is A. take antibiotics B. use antibacterial gel C. wash
Graph the first six terms of a sequence where a1 = -10 and d = 3.