如何運行Solaris 11或Cloud Solaris 11,Android Java?或者我可以使用相同的Solaris 11 Java。這是我正在嘗試的腳本,它適用於Solaris 11,但不適用於Android。Solaris 11可以運行Android dalvik嗎?
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class HelloNonsenseDroid
{
private static String myInput = "no";
public static void main(String[] args) throws IOException
{
System.out.print("Q. Are you Xroid? Answer. ");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
myInput = br.readLine();
if (myInput.equals("yes"))
{
System.out.println("Yes! you are genius");
} else {
System.out.println("No! what in the earth, is No! try to learn to say \"Yes, we can\"");
}
}
}
Go語言。 $ 5g main.go && 5l main.5;並複製粘貼5.out在Android中工作。 – YumYumYum