publicstaticvoid main(String[] args) throws Exception { /* Reach under the covers and get the message strings */
com.sun.tools.example.debug.tty.TTYResources ttyr = new com.sun.tools.example.debug.tty.TTYResources ();
Object [][] testData = ttyr.getContents();
/* Shred our copy of the message strings */ for (int ii = 0; ii < testData.length; ii++) {
testData[ii][0] = "T6287579";
testData[ii][1] = "yyy";
}
/* *Trytolookuptheshreddedkey. *Ifthisissuccessfulwehaveaproblem.
*/
String ss = null; try {
ss = ttyr.getString("T6287579");
} catch (java.util.MissingResourceException mre) { /* *Ignoretheexpectedexceptionsincekey"T6287579"is *notinthecanonicalTTYResources.
*/
} if ("yyy".equals(ss)) { thrownew Exception ("SubClasses of ListResourceBundle should fix getContents()");
}
System.out.println("...Finished.");
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.