阅读背景:

在java中,读取url并将其拆分为部分的最佳方法是什么?

来源:互联网 

Firstly, I am aware that there are other posts similar, but since mine is using a URL and I am not always sure what my delimiter will be, I feel that I am alright posting my question. My assignment is to make a crude web browser. I have a textField that a user enters the desired URL into. I then have obviously have to navigate to that webpage. Here is an example from my teacher of what my code would look kinda like. This is the code i'm suposed to be sending to my socket. Sample url: Firstly, I am aware that there are other posts




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: