import java . util.*;
class Pro11
{
public static void main()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter a string in lowercase");
String str=sc.nextLine();
str=" "+str;
String s="";
char a;
int l=str.length();
a=str.charAt(l-l);
a=Character.toUpperCase(a);
str=str.replace(str.charAt(l-l),a);
for (int i=l;i
Answers
Answered by
0
Answer:
import java.util.scanner to operate scanner class
just import correct class
Similar questions