|
-
October 11th, 2004, 07:16 PM
#1
Senior Member
Arrays
Hello Guys.
I want to know how do we initialize the String array in java, when we do not know what will be the size of the array.
like i want to store the following strings in the string array:
------------
102dwd d fdw f fwf
324 sdf sf sf sf s f
dfe4 34 4 r32
-------------------
i am taking these lines from the txt file, and I do not know the size of the array.
I have used: String Arr[];
but the compiler says that i have to initialize the array, but i do not know the size.
Any sort of information will be appreciated.
Regards
Harbir
U get What U pay for. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|