Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!!
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions