mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-19 20:41:09 +07:00
This commit reverts 65a557bb38f6ac03afa9aabaf02cb8d99fc68a91
3f5cfd958d9b6b54393c15983ac94f519c37fe61
GitOrigin-RevId: 8fb8ccbb17d0e217a83f265c185a943b0f5a7ed6
23 lines
439 B
Plaintext
23 lines
439 B
Plaintext
|
|
class Test {
|
|
|
|
String use(String[] list) {
|
|
for(String str : list) {
|
|
String s = str;
|
|
if (s == null) break;
|
|
s = s.trim();
|
|
if (s.isEmpty()) break;
|
|
int i;
|
|
try {
|
|
i = Integer.parseInt(s);
|
|
}
|
|
catch (NumberFormatException ex) {
|
|
break;
|
|
}
|
|
if (i <= 0) {
|
|
break;
|
|
}
|
|
System.out.println("Ok string: "+str);
|
|
}
|
|
}
|
|
} |