-
-
Save sidishere/df2d414f1c9205c6f9bb972563fe8d7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (dobField.getText().length()<10 || dobField.getText().length()>10) { | |
dob=""; | |
message.setText(("Hey " + nameField.getText().toString() + | |
". You may wish to enter your birthday correctly.Your current birthday seems to be invalid")); | |
} | |
else { | |
dob=dobField.getText().toString(); | |
message.setText(("Hey " + nameField.getText().toString() + ". You know " + monthsArray[Integer.parseInt(dobField.getText().toString().substring(3, 5)) - 1] + | |
" is a really good month to start your journey on our planet.")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment