Homework: Start Oz
Imported By: learncs.online Staff
/ Version: 2021.4.0
Given a string, return a string made of the first 2 chars (if present),
however include the first
char only if it is 'o' and include the second only if it is 'z',
so "ozymandias" yields "oz".
For this problem we're expecting only a method.Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.
Please Log In to Complete Homework Problems