publicstaticvoid main(String args[]) throws Exception { // Construct a command that runs the test in other vm
String[] command = new String[4]; int n = 0;
// Exec another vm to run test in
Process p = null;
p = Runtime.getRuntime().exec(command);
// Read the result to determine if test failed
BufferedReader in = new BufferedReader(new InputStreamReader(
p.getInputStream()));
String s;
s = in.readLine(); if (s == null) thrownew RuntimeException("ModPow causes vm crash");
}
publicstaticclass ModTester { publicstaticvoid main(String [] args) {
BigInteger two = BigInteger.valueOf(2);
BigInteger four = BigInteger.valueOf(4);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.