alternate

JavaF

Alternate letters in uppercase

A str‌ing S (only alphabets) is passed as input. The printed output should contain alphabets in odd positions in each word in uppercase and…