File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/main/java/com/thealgorithms/strings Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 110
110
<!-- See https://checkstyle.org/checks/naming/index.html -->
111
111
<module name =" ConstantName" />
112
112
<module name =" LocalFinalVariableName" />
113
- <!-- TODO <module name="LocalVariableName"/> -->
114
113
<module name =" LocalVariableName" />
115
114
<!-- TODO <module name="MemberName"/> -->
116
115
<!-- TODO <module name="MethodName"/> -->
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ private MyAtoi() {
8
8
}
9
9
public static int myAtoi (String s ) {
10
10
s = s .trim ();
11
- char [] ch = s .toCharArray ();
11
+ char [] char1 = s .toCharArray ();
12
12
String number = "" ;
13
13
boolean negative = false ;
14
14
boolean zero = false ;
15
15
boolean isDigit = false ;
16
16
17
- for (char ch : ch ) {
17
+ for (char ch : char1 ) {
18
18
if (Character .isDigit (ch )) {
19
19
if (number .length () > 1 && !isDigit ) {
20
20
number = "0" ;
You can’t perform that action at this time.
0 commit comments