-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathURL.java
More file actions
37 lines (31 loc) · 1.1 KB
/
URL.java
File metadata and controls
37 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.net.*;
public class URL
{
public static void main(String args[])
{
URL obj=new URL("http://dreamtechpress.com/index.html");
System.out.println("protocol : "+obj.getProtocol());
System.out.println("Host : "+obj.getHost());
System.out.println("File : "+obj.getFile());
System.out.println("Port : "+obj.getPort());
System.out.println("Path : "+obj.getPath());
}
private URL(String httpdreamtechpresscomindexhtml) {
throw new UnsupportedOperationException("Not yet implemented");
}
private String getProtocol() {
throw new UnsupportedOperationException("Not yet implemented");
}
private String getHost() {
throw new UnsupportedOperationException("Not yet implemented");
}
private String getFile() {
throw new UnsupportedOperationException("Not yet implemented");
}
private String getPort() {
throw new UnsupportedOperationException("Not yet implemented");
}
private String getPath() {
throw new UnsupportedOperationException("Not yet implemented");
}
}