mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
class Result {
|
||||
private String _message;
|
||||
|
||||
public Result(String _message) {
|
||||
this._message = _message;
|
||||
}
|
||||
}
|
||||
|
||||
class Main {
|
||||
public static Result doIt(String name) {
|
||||
Result result;
|
||||
|
||||
<selection>if (name == null) {
|
||||
result = new Result("Name is null");
|
||||
return result;
|
||||
}
|
||||
if (name.length() == 0) {
|
||||
result = new Result("Name is empty");
|
||||
return result;
|
||||
}</selection>
|
||||
|
||||
result = new Result("Name is " + name);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user