Array index out of bounds exception

Hello

i am facing array index out of bounds exception for a character array.

any one please help me to get out of this prob.

i have declared character array as

char c[]="";

i have to pass a string and apply my logic on that string.

but i am getting array index out of bounds exception.

plz sort it out and help me.

[423 byte] By [rakesh.pachavaa] at [2007-11-26 19:24:44]
# 1
Uhm, are you trying something like this?String s = "hello";char[] ca = s.toCharArray();
PhHeina at 2007-7-9 21:47:57 > top of Java-index,Java Essentials,Java Programming...