SyntaxFix
Write A Post
Hire A Developer
Questions
Here's the correct code. If you're using zybooks this will answer all the problems.
for (int i = 0; i<passCode.length(); i++) { char letter = passCode.charAt(i); if (letter == ' ' ) { System.out.println("Space at " + i); } }