Solve: At First
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given a non-null
String
, return a String
with length 2 made of its first 2 characters.
If the string length is less than 2, use '@' for the missing characters.
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.String atFirst(String input) {
return "";
}