How did madam cj walker get the name madam cj walker?

She adopted the initials and last name of her third husband, Charles J. Walker, whom she divorced in 1912. Her first husband was Moses McWilliams. Her second husband was John Davis.