Corrected extra newline behavior and added comments as to why we strip out the ' #1
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
adc3b10c46
commit
2ef51c46b1
@ -210,7 +210,7 @@ public abstract class Reader{
|
||||
};
|
||||
|
||||
String convertToString(String[]data){
|
||||
return String.join("\n",data);
|
||||
return String.join("\n",data).replaceFirst(Pattern.quote("\n"),"");
|
||||
}
|
||||
|
||||
int convertToInt(String[]data){return convertToInt(" ",data);}
|
||||
@ -225,7 +225,7 @@ public abstract class Reader{
|
||||
} else {
|
||||
j=0;
|
||||
}
|
||||
System.out.println("["+s+"]"+" starts at "+j);
|
||||
//System.out.println("["+s+"]"+" starts at "+j);
|
||||
for (;j<s.length();j++) {
|
||||
letter_iterator:
|
||||
for (int k=0;k<number_alternatives.length;k++) {
|
||||
@ -233,7 +233,7 @@ public abstract class Reader{
|
||||
if (s.charAt(j)==number_alternatives[k][l]) {
|
||||
numb*=10;
|
||||
numb+=k;
|
||||
System.out.println(" "+s.charAt(j)+" found for "+k+".");
|
||||
//System.out.println(" "+s.charAt(j)+" found for "+k+".");
|
||||
break letter_iterator;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user