Skip to content
C

camelCase to CONSTANT_CASE

Mediumjava

Convert a camelCase identifier to the CONSTANT_CASE style used for Java constants: insert an underscore before each interior capital letter, then upper-case everything.

Input: one token in camelCase (letters and digits, first letter lowercase).

Output: one line — the CONSTANT_CASE form.

Input (stdin)

Output

Run your code to see output here...