public class MyProg
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String s = "abcdefghijklmnopqrstuvwxyz";
System.out.print("Enter i: ");
int i = input.nextInt();
// Print string s out with the first i letters capitalized
}
}
Finish the program by writing statements that capitalizes the first i characters in string s and print the resulting string out.
Examples: