publicstaticvoid main(String[] args) throws Exception { int len;
// find the maximum file name if MAX_PATH or less
len = MAX_PATH; while (!tryCreateFile(len)) {
len--;
}
System.out.format("Testing createFile on paths %d .. %d%n", MIN_PATH, len); while (len >= MIN_PATH) { if (!tryCreateFile(len--)) thrownew RuntimeException("Test failed");
}
// find the maximum directory name if MAX_PATH or less
len = MAX_PATH; while (!tryCreateDirectory(len)) {
len--;
}
System.out.format("Testing createDirectory on paths %d .. %d%n", MIN_PATH, len); while (len >= MIN_PATH) { if (!tryCreateDirectory(len--)) thrownew RuntimeException("Test failed");
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-10-11)
¤
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.