Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

hnt

a guest Dec 6th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. import java.util.*;
  2.  
  3. public class Main {
  4.     static String qwerty(String stroka) {
  5.         stroka.trim();
  6.         String [] slova= stroka.split(" ");
  7.         StringBuilder luchshe = new StringBuilder();
  8.         for (int a = 0; a<slova.length; a++){
  9.             if(!slova[a].equals("")  && a != slova.length-1){
  10.                 if()
  11.             }
  12.             else if (!slova[a].equals("")  && a == slova.length-1){
  13.                 luchshe.append("Грут");
  14.             }
  15.         }String grut = luchshe.toString();
  16.         return grut;
  17.     }
  18.  
  19.     public static void main(String[] args) {
  20.         Scanner in = new Scanner(System.in);
  21.         String stroka = in.nextLine();
  22.         System.out.println(qwerty(stroka));
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top