Skip to content

Instantly share code, notes, and snippets.

@akexorcist
Created January 8, 2015 03:21
Show Gist options
  • Save akexorcist/9d5c619c898709221c0d to your computer and use it in GitHub Desktop.
Save akexorcist/9d5c619c898709221c0d to your computer and use it in GitHub Desktop.
String[] strEditText = { name, last, age, sex };
String[] strMessage = { "ช่องชื่อว่าง", "ช่องนามสกุลว่าง", "ช่องอายุว่าง", "ช่องเพศว่าง" };
for(int i = 0 ; i < strEditText.length ; i++) {
if(strEditText[i].length() == 0) {
message = strMessage[i]";
callMessage(title,message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment