1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alina1380 [7]
3 years ago
15

Java:

Computers and Technology
1 answer:
Agata [3.3K]3 years ago
5 0

Answer:

import java.util.*;

public class work {

// function for counting unique character

public static int numUnique(String input) {

boolean[] list = new boolean[Character.MAX_VALUE];

for (int i = 0; i < input.length(); i++) {

list[input.charAt(i)] = true;

}

int count = 0;

for (int i = 0; i <list.length; i++) {

if (list[i] == true){

count++;

}

}

return count;

}

public static void main(String args[])

{

List<String>list=new ArrayList<>(); // creatng array list of type string

list.add("abcdef");

list.add("aaabcd");

list.add("bccddee");

list.add("abcddd");

list.add("a");

for(String str:list)

{

// for printing the results

System.out.println("given string : "+ str+" , number of unique values :"+numUnique(str));

}

}

}

Explanation:

You might be interested in
Math and science are the foundation from which drafters work<br><br> True<br> False
gogolik [260]

Answer:

the answer is true

Explanation:

because I know

5 0
3 years ago
What symbol following a menu command lets you know that a dialog box will be displayed? an arrow a check mark an ellipse a radio
Vlad [161]
I believe its the radio button
5 0
3 years ago
Read 2 more answers
If a file you are opening for appending does not exist, the operating system will detect the missing file and terminate the oper
RSB [31]

Answer:yes

Explanation:yes for a good night of love and love love miss

3 0
3 years ago
Which type of error occurred in the following lines of code?
kvasek [131]

Answer: Logical Error

The division by 0 is a logical error.

8 0
3 years ago
How can you distinguish between a manually added page break and an automatic page break in a worksheet?.
frosja888 [35]

There are different kinds of breaks. You can distinguish them by the fact that Automatic page breaks appear as dashed lines while manual page breaks appear as solid lines.

A page break is a term that shows the point where one page ends and where another one starts.

In automatic page break, One does not need to break the page as it will  fill itself automatically. In manual page break, a person is needed to break it. yourself

Word often inserts itself in an automatic page break and starts immediately in a new page. An automatic page break is often shown by by a dotted line. A manual page break is shown by a dotted line named as Page Break.

Learn more about Breaks from

brainly.com/question/13286760

5 0
3 years ago
Other questions:
  • If a gas gosts 3.60 per gallon how much doe sit cost to drive 500 miles in the city
    5·1 answer
  • Select all that apply. Hyperlinks can appear as: words pictures symbols trademarks
    12·2 answers
  • Which of them does not support decision making? Options DSS, GDSS, ESS All of above
    10·1 answer
  • Write a Python function merge_dict that takes two dictionaries(d1, d2) as parameters, and returns a modified dictionary(d1) cons
    5·1 answer
  • if there are several web pages that you visit regularly what can you do to make accessing them more efficient?
    13·1 answer
  • The ash and dust from a volcanic eruption can cause a ______ change in the environment.
    8·1 answer
  • What is the output of the following program?
    10·1 answer
  • When you make a DNS query, where does your computer first check to find an IP address to name mapping?
    8·1 answer
  • Supp guees how your dayyyyyyyyyyyy
    10·2 answers
  • Which button in the Sort &amp; Filter gallery of the Data tab would alphabetize from A to Z quickly?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!