Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Pattern pattern=Pattern.compile("(\\d),(\\d)");
Matcher matcher=pattern.matcher("DEIN STRING");
int x=Integer.parseInt(matcher.group(1));
int y=Integer.parseInt(matcher.group(2));
Ist die Methode über Pattern und dem Matcher so viel schneller als zwei Mal die split() Methode zu verwenden?
Pattern pattern=Pattern.compile("(\\d),(\\d)");
Matcher matcher=pattern.matcher("DEIN STRING");
if (matcher.matches()) {
int x=Integer.parseInt(matcher.group(1));
int y=Integer.parseInt(matcher.group(2));
}