mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8316187: Modernize examples in StringTokenizer and {Date,Number}Format
Reviewed-by: naoto
This commit is contained in:
parent
8f46abc938
commit
c92bdb0e91
3 changed files with 7 additions and 7 deletions
|
@ -85,8 +85,8 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
|||
* <blockquote>
|
||||
* {@snippet lang=java :
|
||||
* DateFormat df = DateFormat.getDateInstance();
|
||||
* for (int i = 0; i < myDate.length; ++i) {
|
||||
* output.println(df.format(myDate[i]) + "; ");
|
||||
* for (Date myDate : dates) {
|
||||
* output.println(df.format(myDate) + "; ");
|
||||
* }
|
||||
* }
|
||||
* </blockquote>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue