Question: I keep getting this error when running my code. Can someone please help me fix this? public class Finder { public static int findAndAdd (
I keep getting this error when running my code. Can someone please help me fix this?
public class Finder
public static int findAndAddString s
int sum ;
StringBuild number new StringBuild;
for int i ; i slength; i
char currentChar scharAti;
if CharacterisDigitcurrentChar
number.appendcurrentChar;
else
if numberlength
sum Integer.parseIntnumbertoString;
number.setLength;
if numberlength
sum Integer.parseIntnumbertoString;
return sum;
FinderTest.java:: error: ; expected
String s xyzabc"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
