1 parent a6df1c6 commit 0c3db38Copy full SHA for 0c3db38
1 file changed
FirstLetterUppercase.java
@@ -4,13 +4,14 @@ public static void main(String[] args) {
4
String word = "HeLlo vSSS";
5
String[] words = word.split(" ");
6
String uppCase = "";
7
- if (word == null || word.isEmpty()) {
8
- return;
9
- }
+
+ if (word == null || word.isEmpty()) return;
10
for (String i : words) {
11
uppCase += i.substring(0, 1).toUpperCase() +
12
i.substring(1).toLowerCase() + " ";
13
}
14
15
System.err.println(uppCase);
16
17
0 commit comments