Posted By: Namita_Prakash |
3/28/2007 1:24:00 AM |
|
|
STRING DECLARATION PROBLEM
I want to declare a string array without mentioning its dimension which according to my knowlegde can be done as - String[ ] str; .
Now suppose this string has some values and i want to assign a part of these values to another string say String[ ] str1 .
for example-
j=0;
for(i=4;i
{
str1[ j ]=str[ i ];
j++;
}
Error - str1 may not have been initialized.>
|
|