Home » Java » Java: How to size array based on file size? [on hold]

Java: How to size array based on file size? [on hold]

Posted by: admin June 14, 2018 Leave a comment

Questions:

I am getting a file and using bitwise to manipulate the bits. How can I automatically create an array to accommodate different sized files?

Thanks.

Jim

String a = "fff";
byte[] bytes = a.getBytes();
int num = bytes[0] | 1;
System.out.println(num);
Answers: