Register Login





|

Top Links: >> 80. Technology >> Internet Technology Summit Program >> 3. Threads and Network
Current Topic: 3.3. Threads and network project
You have a privilege to create a quiz (QnA) related to this subject and obtain creativity score...
Threads and network project

1. Create in Eclipse the project week8.threads.http.project
2. Create the package its.day17.threads.http.project
3. Create the class MyThreadHttpProject
4. In the header of the class provide the following description.
5. The class will implement Runnable to run a thread.
6. The class will also have the readKeyword() method which will use Scanner in the for loop to allow a user to enter a keyword in the Console.
7. The class will have private String keyword; as class data.
8. The thread run method will have the loop till the entered keyword.equals("end");
Was it clear so far? Highlight the text in question Or

9. The thread run() method will check if keyword is not null and in this case will add this keyword to the URL that retrieves links from the Youtube.com site:
String url = "https://www.youtube.com/results?search_query=" + keyword;
10. The thread will use the WebReader class to read a web page based on this URL.
11. The thread will write the resulting html string to c:/its-resources/myVideo.html
12. The thread will have one minute period to run (60*1000 msec).
13. You can check c:/its-resources directory to watch the resulting web page.
14. Compress the sources and email to dean@ituniversity.us with the subject: ThreadsAndNetworkProject.Your.Name.zip
15. Enhance this project with more features, describe in Business Requirements, Design Spec, and implement in Java and email in a compressed file as 3.3.BetterThreadsAndNetworkProject.zip to dean@ituniversity.us



We invite you to create your own questions and answers (QnA) to increase your rank and win the Top Creativity Prize!

| Check Your Progress | Propose QnA | Have a question or comments for open discussion?

Have a suggestion? - shoot an email
Looking for something special? - Talk to AI
Read: IT of the future: AI and Semantic Cloud Architecture | Fixing Education
Do you want to move from theory to practice and become a magician? Learn and work with us at Internet Technology University (ITU) - JavaSchool.com.

Technology that we offer and How this works: English | Spanish | Russian | French

Internet Technology University | JavaSchool.com | Copyrights © Since 1997 | All Rights Reserved
Patents: US10956676, US7032006, US7774751, US7966093, US8051026, US8863234
Including conversational semantic decision support systems (CSDS) and bringing us closer to The message from 2040
Privacy Policy