Advertisement
Guest User

Untitled

a guest
Oct 7th, 2019
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. package com.company.ExamM;
  2. import java.util.ArrayList;
  3. import java.util.LinkedHashMap;
  4. import java.util.Scanner;
  5.  
  6.  
  7. public class RealShit2 {
  8. public static void main(String[] args) {
  9. Scanner sc = new Scanner(System.in);
  10.  
  11. String[]words=sc.nextLine().split(" ");
  12.  
  13. StringBuilder result=new StringBuilder();
  14.  
  15. for(String word : words) {
  16. int count = word.length();
  17. for (int i = 0; i < count; i++) {
  18. result.append(word);
  19. }
  20. }
  21.  
  22. System.out.print(result);
  23.  
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement