#variable is wrong
1 messages · Page 1 of 1 (latest)
okay so the for loop with the 'k' checks every letter of the password
and if its there in the string strenght 1
I recommend placing some breakpoints to step through it.
is it not because at every iteration that you check substring you are setting STRONG to 2?
okay so after every if?
no if you debug it by placing breakpoints you will get to know
can you send this program if possible
is it a single file program?
yes
It's a short method, so just copy paste the text here using:
Please use this format for posting code:
```java
// Example java program
int value = 5;
System.out.println(value);
```
Which results in:
// Example java program
int value = 5;
System.out.println(value);
For syntax highlighting, you have to add the name of the language after the three backticks, like ```java. Please make sure to use exactly this format, so no space between the backticks and the language name, and a newline before the code starts. If done right, the syntax highlighting will even be applied to your text as you type, before sending.
yes this will help
and once u find your problem, have a look on regex