SHARE
TWEET

HT3.1.2.java

SashaPerry Jan 20th, 2020 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. 1) Привести пример каждого из вышеперечисленным методов String и парочку методов StringBuilder: contains
  3. */
  4.  
  5. package HT2;
  6.  
  7. public class HT2 {
  8.     public static void main(String[] args) {
  9.  
  10.         String s = "Я буду хорошим сотрудником ПриватБанка";
  11.         System.out.println("Строка содержит 'буду': " + s.contains("буду"));
  12.         System.out.println("Строка содержит 'Example': " + s.contains("Example"));
  13.     }
  14. }
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