Browse Source

swhcoding.com domain change

tobby48 5 years ago
parent
commit
0af347cdbc

+ 1
- 1
src/kr/co/swh/lecture/network/URLEx1.java View File

20
         URL opinion = null;
20
         URL opinion = null;
21
         URL homepage = null;
21
         URL homepage = null;
22
         try {
22
         try {
23
-            homepage = new URL("http://swhacademy.gq:8080"); 	//	절대 경로
23
+            homepage = new URL("http://swhcoding.com:8080"); 	//	절대 경로
24
             opinion = new URL(homepage, "s/sw_network.html"); 	//	상대 경로
24
             opinion = new URL(homepage, "s/sw_network.html"); 	//	상대 경로
25
         } catch (MalformedURLException e) {
25
         } catch (MalformedURLException e) {
26
             System.out.println("잘못된 URL입니다.");
26
             System.out.println("잘못된 URL입니다.");

+ 1
- 1
src/kr/co/swh/lecture/network/URLEx2.java View File

20
 public class URLEx2 {
20
 public class URLEx2 {
21
 	public static void main(String[] args) {
21
 	public static void main(String[] args) {
22
 		try {
22
 		try {
23
-            URL url= new URL("http://swhacademy.gq:8080/s/sw_network.html");
23
+            URL url= new URL("http://swhcoding.com:8080/s/sw_network.html");
24
             //	Case1 : URL방식
24
             //	Case1 : URL방식
25
             BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
25
             BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
26
             
26