Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company.ExamM;
- import java.util.ArrayList;
- import java.util.LinkedHashMap;
- import java.util.Scanner;
- public class RealShit2 {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String[]words=sc.nextLine().split(" ");
- StringBuilder result=new StringBuilder();
- for(String word : words) {
- int count = word.length();
- for (int i = 0; i < count; i++) {
- result.append(word);
- }
- }
- System.out.print(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement