No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm wondering if there is a more efficient way to take a 10 character (mm/dd/yyyy) date of birth String and calculate the age of the user as of today's date. My code works perfectly fine, but I feel like it could be more efficient. [CODE] package dates; import java.util.*; public … |
|
How would you go about skipping non-numeric characters in a string and only adding the sum of the numbers a multi line string? |
|
I don't understand how to check for non-alpha characters in a string that has more than one word. I'm basically asking for a retype if the string has more than 3 words or if it has non-alpha characters. I'm wondering if Character.isLetter is not what I'm looking for since it … |