Answer the question
In order to leave comments, you need to log in
Running a code called void, how do you run functions in delphi for example?
Hello everyone, how to run the code?
public static void main(String[] args) throws Exception {
int c;
String str = "btc.ru";
URL hp = new URL(str);
URLConnection hpCon = hp.openConnection();
hpCon.setDoOutput(false);
hpCon.setDoInput(true);
hpCon.connect();
InputStreamReader in = new InputStreamReader(hpCon.getInputStream());
BufferedReader br = new BufferedReader(in);
String line = "";
System.out.print("Ok");
while ((line = br.readLine()) != null) {
System.out.println(line);
}
}
public void Message()
{
messagebox(123);
}
protected void onCreate(Bundle savedInstanceState) {
Message(); /////// это
}
protected void onCreate(Bundle savedInstanceState) {
main();
}
public void Message()
{
String http = "";
http:= send.get:= '123.ru';
showmassage(http); // в переменной http код html страницы
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question