The statement at line 8 is:
String[] array2 = str2.split("?", 0);
Type: Posts; User: CodeBro
The statement at line 8 is:
String[] array2 = str2.split("?", 0);
Here is the program:
import java.util.Arrays;
public class Program {
public static void main(String[] args) {
String str = "22-22";
String str2 = "33?33";
String str3 = "12,12";
This is the full error message:
Exception in thread "AWT-EventQueue-0" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
+-x/doubleintarclg
^
at...
I am currently trying to make a calculator in Java. I want to use the String split method to tokenize the string of characters inputted. I thought I was using the String split method wrongly, because...