- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
3 Posted Topics
public static int syllables(String s) { final Pattern p = Pattern.compile("([ayeiou]+)"); final String lowerCase = s.toLowerCase(); final Matcher m = p.matcher(lowerCase); int count = 0; while (m.find()) count++; if (lowerCase.endsWith("e")) count--; return count < 0 ? 1 : count; }
This is an elementary programming error that suggests you are new to coding, and probably shouldnt be codinf an ATM application that must be secure and solid due to financiala regulation and high risk. The problem is that you assign a value of 0 to a variable, then you check …
system("cls") is not going to work. System () is a function that makes a call out to the operating system to run a command. CLS is a DOS command to clear the screen, however, it is a internal command that does not have an EXE to be run. I am …
The End.
Armand_2