so i'm currently trying to check whether or not there's a brace in a String in an array, but I can't figure out how its done.
public void braceChecker()
{
String[] code = new String[]{"{} [] () {"};
System.out.println(code[0].charAt(0) == "{");
}
Obviously, it errors on the last print statement, but I can't find a way to check that character without java yelling at me. If I take "{" out of the string, it interprets it as an actual brace. How do I go about this?