SHARE
TWEET

Untitled

a guest Oct 18th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public String startOz(String str) {
  2.         String tempStr = "";  
  3.         if(str.length() >= 1 && str.charAt(0) == 'o') {
  4.             tempStr += 'o';
  5.         }
  6.         if(str.length() >= 2 && str.charAt(1) == 'z') {
  7.             tempStr += 'z';
  8.         }
  9.         return tempStr;
  10.     }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top