20 |
} |
} |
21 |
|
|
22 |
public static String vaskVejnavn(String indVejnavn) { |
public static String vaskVejnavn(String indVejnavn) { |
23 |
String out = indVejnavn.toLowerCase(); |
StringBuilder sb = new StringBuilder(); |
24 |
out = out.replace(" ", ""); |
char chars[] = indVejnavn.toCharArray(); |
|
out = out.replace(".", ""); |
|
|
out = out.replace(",", ""); |
|
|
out = out.replace("-", ""); |
|
|
out = out.replace("/", ""); |
|
|
out = out.replace("\\", ""); |
|
|
out = out.replace("'", ""); |
|
|
out = out.replace(";", ""); |
|
|
out = out.replace(":", ""); |
|
|
out = out.replace("ยด", ""); |
|
25 |
|
|
26 |
|
for (char c: chars) { |
27 |
|
if ( Character.isAlphabetic(c)) { |
28 |
|
sb.append(Character.toLowerCase(c) ); |
29 |
|
} |
30 |
|
} |
31 |
|
|
32 |
return out; |
return sb.toString(); |
33 |
} |
} |
34 |
|
|
35 |
public static String injectIntoBk(String bkrute, String injected) { |
public static String injectIntoBk(String bkrute, String injected) { |