Programming tutorials online .NET, Java, C++, Visual Basic, and More
 

Home
.NET Tutorials
General Programming Tutorials
Community/Forums
Site Extras

 

Java/J2EE Forum
 

Open forum for discussing anything Java related. J2EE, JSPs, servlets, EJBs, JDBC, its all fair game and can be found in the Java/J2EE forum!


POST REPLY
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.>



 
Sign In
Email
Password
  Forgot my password

Search

Featured Book

Introducing Microsoft .Net, Third Edition ($19.79)
Introducing Microsoft .Net, Third Edition


Featured Software

Microsoft Visual Studio Standard 2005 ($249.99)
Microsoft Visual Studio Standard 2005