3 small Java Solutions

The seperate solutions

#1 Write a program that reads text from [url removed, login to view] and breaks it up into individual words. Insert the words into a tree set. At the end of the input file, print all words, followed by the size of the resulting set. This program determines how many unique words a text file has.

#2 Write a program that reads a Java source file and produces an index of all identifiers in the file. For each identifier, print all lines in which it occurs. Hint: Call [url removed, login to view]("[^A-Za-Z0-9_]+"). Then each call to next returns a string consisting only of letters, numbers, and underscores.

#3 Try to find two words with the same hash code in a large file, such as the /usr/share/dict/words file on a Linux system. Keep a Map<Integer, HashSet<String>>. When you read in a word, compute its hash code h and put the work in the set whose key is h. Then iterate through all keys and print the sets whose size is > 1.

Compétences : Java

Voir plus : write program reads java source file, tree insert, tree index, string source code java, string hash, map string, java how to program solutions, index tree, how to find solutions, how to find a file in linux, h&h solutions, hash string to integer, hash string, c how to program solutions, at solutions, work solutions, key identifiers, find and write the letters, solutions, java small, java hash, IT solutions, write java program read, text hash, write java file program

Concernant l'employeur :
( 2 commentaires ) Stafford, United States

N° du projet : #2330615

Décerné à :


I can do this for you. Please check your PMB.

40 $ USD en 1 jour
(5 Commentaires)

3 freelance font une offre moyenne de $57 pour ce travail


Hi, I can give solutions to 3 Java Programs. Thanks

60 $ USD en 1 jour
(4 Commentaires)

Hi, I can give the solution for 3 programs. Thanks

70 $ USD en 1 jour
(0 Commentaires)