Skip to content
CampusEduX

camelCase to CONSTANT_CASE

Mediumjava
Learn the Concept: Keywords and Identifiers

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.

Related Problems

Input (stdin)

Output

Run your code to see output here...