Java Java Basics Perfecting the Prototype Censoring Words - Using Logical ORs

Dmitrijs Jefremovs
Dmitrijs Jefremovs
1,875 Points

Why does my || is not affecting on syntax start?

I've added || but it still doesn't affect the whole syntax. Why? :( https://monosnap.com/file/ah3tDLJTtMlslTAnzd0hKogLXoAWcc

2 Answers

You have an extra "(", it should be:

(noun.equalsIgnoreCase("dork") || noun.equalsIgnoreCase("jerk"))