我想在textfield中输入一些文字,然后选择a,如果a不可用,再选择b,最后提交信息。我只是写了这些代码,不知道接下来我能做什么。
URL page_1 = new URL("https://google.com.hk");
HttpURLConnection urlconnection = (HttpURLConnection) page_1.openConnection();
DataOutputStream data_out = new DataOutputStream(urlconnection.getOutputStream());
DataInputStream data_in = new DataInputStream(urlconnection.getInputStream());
urlconnection.setDoInput(true);
urlconnection.setDoOutput(true);
System.out.println(data_out);
System.out.println(data_in);
System.out.println(urlconnection);