mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-26 14:04:17 +08:00
Cleaned up code for some packages (#5094)
* Cleaned up code of some packages --------- Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
40cd4d86ef
commit
22310defcd
@ -58,7 +58,7 @@ public class TurkishToLatinConversion {
|
||||
'G',
|
||||
};
|
||||
for (int i = 0; i < turkishChars.length; i++) {
|
||||
param = param.replaceAll(new String(new char[] {turkishChars[i]}), new String(new char[] {latinChars[i]}));
|
||||
param = param.replaceAll(String.valueOf(turkishChars[i]), String.valueOf(latinChars[i]));
|
||||
}
|
||||
return param;
|
||||
}
|
||||
|
Reference in New Issue
Block a user