Question: 6. The URL class is used to allow java to access websites. 7. There is a class in the java API called vector. The objects

6. The URL class is used to allow java to access websites.
7. There is a class in the java API called vector. The objects in this class are similar to an arraylist... see pictures. C++ only please! Do number 6 and 7 please!!
 6. The URL class is used to allow java to access

T Normal No Spac... Heading 1 Heading 2 Paragraph 6. [4 points, 2 points each for a) and b) The URL class is used to allow Java to access websites. a. Write the import statement that is needed to use the URL class. import iava net HttpURLConnection; import java.net.URL; import Grading note: Could be import java.net. too-but it's not as nice. b. create a URL object and write the file name, path name, port number, and protocol name for that URL. 7. (10 points There is a class in the Java API called vector. The objects in this class are similar to an ArrayList, except for a detail that is irrelevant to this discussion. Suppose that methods with the following signatures were in the class. Should they be class methods or instance methods? a) add(int item) Add item to this Vector. b) add(int item, Vector v) Add item to Vector v. c) ector v Place the elements in Vector v in ascending order. d) sort0 Place the elements of this Vector in ascending order. e) binary int target) Search the elements of this Vector for the target value

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!