View Code of Problem 43


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        char[] a = str.toCharArray();
        for (int i = 0; i < a.length; i++) {
            if(a[i]>='A'&&a[i]<='z')
                System.out.print(a[i]);
        }
    }
}

Double click to view unformatted code.


Back to problem 43