Question: Assignment Information Instructions: USE JAVA The three attached files contain similar data. Test is the small file that can be used to check your results.

Assignment Information
Instructions: USE JAVA
The three attached files contain similar data. Test is the small file that can be used to check your results. Your code should only access one file at a time.
We want to find the unique "links" to the first element in the file. You can think of the first 3 numbers as the web page and the next 3 numbers as a link to it. We want to write code that provides the number of unique links. You should not use contains or any other method to determine if a link has been added. We would like to know how many lines are in the selected file when we run the program. You should use an Iterator to print the results.
Sample output for Test.txt:
Number unique elements 3
Total number of lines 7
Unique links
0002
0011
0022

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!