cancel
Showing results for 
Search instead for 
Did you mean: 

Disappearing Braces !!

former_member185751
Contributor
0 Kudos

Hi,

Whenever i try to paste some java code in this area, the first time it shows all the square braces. But if i edit the message then square braces disappear along with the contents enclosed between it.

For eg:

for(int i=0;i<a<i>.length;i++){

if(a<i>!=null && !(a<i>.trim().equals(""))){

result.addValue(a<i>.trim());

}

I'm not sure whether its a bug or may be its just the way i write my programs or may be it accepts only ABAP (just kidding)

Regards,

Sridhar

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185751
Contributor
0 Kudos

Wow.... this time it removed the braces as soon as i posted the message !!

Pls help !!

Regards,

Sridhar

former_member374
Active Contributor
0 Kudos

Hi Sridhar,

Is it also happening when you put your code between the code tags?

for(int i=0;i<a<i>.length;i++){
if(a<i>!=null && !(a<i>.trim().equals(""))){
result.addValue(a<i>.trim());
}

Let us know, and no it is not an ABAP trick

Best, Mark.

former_member185751
Contributor
0 Kudos

Hi Mark,

Thanks for replying and also clarifying that its not an ABAP trick

I have actually put my code within the code tag now but still the problem seems to persist.

All occurences of "a" (except in "a.length") are actually arrays -> "a of i". I can actually see "i" enclosed within the square braces in edit mode only.

for(int i=0;i<a.length;i++){
if(a<i>!=null && !(a<i>.trim().equals(""))){
result.addValue(a<i>.trim());
}

Thanks,

Sridhar