- How to connect to a sqlite database existing on Android devices from your PC?
- How to interact with Android sqlite database from remote shell?
Full article in HMKCode
// java 7 only!
switch (str.toLowerCase()) {
case "a":
value = 1;
break;
case "b":
value = 2;
break;
}
int n = Integer.parseInt("10");
String[] strArray = aString.split("\\s+");
str.substring(m, n) + ""
String str = "abcd"; String repeated = StringUtils.repeat(str,3); //abcdabcdabcd
String str = "Sep 17, 2013";
Date date = new SimpleDateFormat("MMMM d, yy", Locale.ENGLISH).parse(str);
System.out.println(date);
//Tue Sep 17 00:00:00 EDT 2013
int n = StringUtils.countMatches("11112222", "1");
System.out.println(n);
public static boolean testAllUpperCase(String str){
for(int i=0; i < str.length(); i++){
char c = str.charAt(i);
if(c >= 97 && c <= 122) {
return false;
}
}
//str.charAt(index)
return true;
}
Source: http://www.programcreek.com/