MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / main

Method main

src/main/java/com/thealgorithms/strings/Upper.java:10–15  ·  view source on GitHub ↗

Driver Code

(String[] args)

Source from the content-addressed store, hash-verified

8 * Driver Code
9 */
10 public static void main(String[] args) {
11 String[] strings = {"ABC", "ABC123", "abcABC", "abc123ABC"};
12 for (String s : strings) {
13 assert toUpperCase(s).equals(s.toUpperCase());
14 }
15 }
16
17 /**
18 * Converts all the characters in this {@code String} to upper case.

Callers

nothing calls this directly

Calls 2

toUpperCaseMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected