Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
12
Task/Empty-string/Ballerina/empty-string.ballerina
Normal file
12
Task/Empty-string/Ballerina/empty-string.ballerina
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import ballerina/io;
|
||||
|
||||
function isEmpty(string s) returns boolean {
|
||||
return s.length() == 0;
|
||||
}
|
||||
|
||||
public function main() {
|
||||
string s = "";
|
||||
string t = "0";
|
||||
io:println("'s' is empty? ", isEmpty(s));
|
||||
io:println("'t' is empty? ", isEmpty(t));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue