Advertisement
sergAccount

Untitled

Aug 16th, 2020
1,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.app12;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class StringUtil {
  13.  
  14.     // Alt + Shift + F - форматирование кода
  15.     // В классе StringUtil определить статический метод
  16.     public static void printWords(String... words) {
  17.         // words
  18.         for (int i = 0; i < words.length; i++) {
  19.             String word = words[i];
  20.             System.out.println(word);
  21.             //System.out.print(word);            
  22.         }
  23.     }
  24.  
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement