WAP a program using small letters and cover string to capital letters
Answers
Answered by
0
Answer:
Program:-
import java.util.*;
public class UppercaseString
{
public static void main(String args[ ])
{
Scanner in=new Scanner(System.in);
String st,st1=" ";
System.out.println("Enter the String");
st=in.nextLine();
st1=st.toUpperCase();
System.out.println("The String in uppercase:"+st1);
}
}
Similar questions
Computer Science,
3 months ago
Physics,
10 months ago