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...
I am making a calculator in Java. However, when I press the "=" button on my calculator, it always returns 0.0, no matter what. I don't understand why? The code is below:
import...
I am trying to make a calculator in Java. I have made much progress so far, but when the equal button is pressed when I try to do a calculation in the calculator, nothing happens and error messages...
Hello. I am trying to make a calculator using Java GUI. I've managed to make an ActionListener and add it to a button, but I've made an error in my code that I'm unsure of how to solve. Because of...
Hi, guys! I am CodeBro. I've learned a few languages, HTML, CSS, some Javascript, and Java. I have a website where I review games. I am also recording myself playing games to promote my website. I...