Can we write like this using ternary operator? When I wrote like this I am getting error,Please help me.How can I write correct syntax? 

```
(str.charAt(j)==c.charAt(k++)) ? break: k<len1 ? continue:break L1;

```