I have a string `"(3+3)*(4-2)(+(+("`.In order to split it where `(` is present,I hadfirst replaced the given string using replace method to `+` Then I wanted to find the length of the new array.In the given string there are 5 `(` so the length of the array should be 5 but it gives me 2.May i know why this occurs.

```
String x =String x ="(3+3)*(4-2)(((";
    String y=x.replace("(", "_");
    String z[]=y.split("_");

    System.out.println(y);

    System.out.println("length  "+z.length);

```

the output is

```
_3+3)*_4-2)___

```

length 3

**EDIT**

I made a mistake.As I was posting a part of my code so made some mistake.Please see the updated code