SHARE
TWEET

Untitled

a guest Oct 18th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. String[] days = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"};
  2. int count = 0;//1st count = 0
  3.     for (String s : days)
  4.     {
  5.             if (s.startsWith("T") || s.contains("es"))
  6.             {
  7.                 count++;
  8.                
  9.             }
  10.            
  11.            
  12.            
  13.     }
  14.        
  15.         System.out.println(count);
  16.  
  17.     }
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