forked from mirror/waf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
605 B
Java
28 lines
605 B
Java
public final class StringUtils
|
|
{
|
|
|
|
public static final String LIBRARY_NAME = "stringUtils";
|
|
|
|
static
|
|
{
|
|
System.loadLibrary(LIBRARY_NAME);
|
|
}
|
|
|
|
private StringUtils()
|
|
{
|
|
}
|
|
|
|
public static native boolean isAlpha(String string);
|
|
|
|
public static native boolean isEmpty(String string);
|
|
|
|
public static void main(String[] args)
|
|
{
|
|
System.out.println(StringUtils.isAlpha("sureIs"));
|
|
System.out.println(StringUtils.isAlpha("nope!"));
|
|
System.out.println(StringUtils.isEmpty(" "));
|
|
System.out.println(StringUtils.isEmpty("nope"));
|
|
}
|
|
|
|
}
|