Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit02d2b7b

Browse files
author
jsquared21
committed
Modify Ex 21.4
1 parent7c03636 commit02d2b7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Exercise_21/Exercise_21_04/Exercise_21_04.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void main(String[] args) throws Exception {
2323
}
2424

2525
// Create a set to store vowels
26-
Set<Character>set =newHashSet(Arrays.asList('A','E','I','O','U'));
26+
Set<Character>set =newHashSet<>(Arrays.asList('A','E','I','O','U'));
2727
intvowels =0;// Counts the number of vowels
2828
intconsonants =0;// Counts the number of consonants
2929

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp