- 浏览: 15212 次
- 性别:
最新评论
-
zjw101018:
freezingsky 写道在平面坐标系中,测试是否是平行或者 ...
判断两条线是否相交 -
freezingsky:
在平面坐标系中,测试是否是平行或者相交,直接使用斜率即可!
判断两条线是否相交
文章列表
//读
Reader reader = null;
//写
Writer fw = null;
try{
reader = new FileReader("读取文件位置");
char ch[] = new char[20];
StringBuffer sb = new StringBuffer();
int length = reader.read(ch);
while(length!=-1){
sb.append(ch,0,length);
length = reader.read(ch);
}
...
public static String getHTML(String pageURL, String encoding) {
StringBuilder pageHTML = new StringBuilder();
try {
URL url = new URL(pageURL);
HttpURLConnection connection = (HttpURLConnection) url .openConnection();
connection.setRequestProperty(& ...