|
-
Nov 25th, 2000, 06:16 PM
#1
Thread Starter
Dazed Member
Does anyone know if there is anyway i can declare an
array static so it holds it's value if i want to access
it from out of it's scope?
String filename
byte[] fileholder;
while ((character = fileinputstream.read(fileholder)) != -1){}
for(int k = 0; k < fileholder.length; k++){
String s = new String(fileholder);
System.out.print(s);}
// when the for loop executes nothing is printed becuase
i think the byte[] file holder is being accessed out
of it's scope. It's not that i need to print out the
contents of fileholder, i just need a way to fill it up
and be able to use it at a later time.
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
|
Click Here to Expand Forum to Full Width
|