【发布时间】:2019-11-02 04:01:37
【问题描述】:
我正在尝试创建一个基于 WhatsApp 网络应用程序的程序。我试图找出启动此类程序的最佳编程语言。例如,我用 java 尝试过,但使用这个实现:
public UrlReader() throws IOException {
try {
URL whatsApp = new URL("https://web.whatsapp.com/");
DataInputStream dis = new DataInputStream(whatsApp.openStream());
String inputLine;
while ((inputLine = dis.readLine()) != null) {
System.out.println(inputLine);
}
dis.close();
} catch (MalformedURLException me) {
System.out.println("MalformedURLException: " + me);
} catch (IOException ioe) {
System.out.println("IOException: " + ioe);
}
}
这只是来自 oracle 网站的基本复制和粘贴。这个程序的输出是一个网站,告诉我我必须使用像 chrome 这样的浏览器。有没有更好的方法来创建这样的程序?
【问题讨论】:
-
"[B]ased on" 可能意味着很多事情。 你有什么想法?
-
我想输入 html 以详细说明其中包含的信息。
标签: java html web-applications