Computer Science, asked by sajeevtcr8, 6 months ago

String s1="nice"; String na = s1.toUpperCase()​

Answers

Answered by Oreki
0

After Execution:

na = "NICE"

Answered by anindyaadhikari13
1

Answer:-

Given,

String s1="nice"

String na=s1.toUpperCase();

Or,

na="NICE"

At first, s1 is converted to uppercase and then it is initialised in variable na.

So,

na="NICE"

Similar questions