Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- // write your code here
- Scanner scan = new Scanner(System.in);
- String str;
- System.out.println("Unesite vasu recenicu ");
- str=scan.nextLine();
- String result="";
- String[] arr=new String[200];
- for (int i=0;i<str.length();i++){
- arr=str.split(" ",i);
- }
- for (int i=0;i<arr.length;i++){
- if (!Character.isUpperCase(arr[i].toCharArray()[0])){
- result+=arr[i]+" ";
- }
- }
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement