Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8752195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:11:15+00:00 2026-06-13T13:11:15+00:00

How might you go about creating a List of byte[] (not Byte )? I

  • 0

How might you go about creating a List of byte[] (not Byte)?

I want something like the following:

byte[] deb = new byte[Byte.MIN_VALUE];
List<byte[]> begin = new LinkedList<>();
begin.add(deb);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:11:16+00:00Added an answer on June 13, 2026 at 1:11 pm

    That will work fine because arrays are objects in Java, so you can build Lists out of them.


    Note that only in Java 7 can you do

    List<byte[]> begin = new LinkedList<>();
    

    In older versions you must restate the byte[]:

    List<byte[]> begin = new LinkedList<byte[]>();
    

    This has been brought up already but I’ll just reiterate it here. Byte.MIN_VALUE is less than 0; you cannot create an array of length less than 0 (it results in a runtime error, specifically a NegativeArraySizeException). Did you mean Byte.MAX_VALUE?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any hints what the following exception might be about? Running on: http://localhost:3000/ No dependency
Before answering, it is not as easy question as you might have thought about
I might have pretty basic question about regex. I have the following regex, which
i have list of departments and each department might have a parent or not
So I was thinking of creating a list of objects like this ArrayList<Obj> lst
For anyone who might have a question like this, you probably need Collections.sort, not
Can someone give me some info/background info on how I might go about writing
How might I go about performing an action only when a G+ button has
Have you worked in WPF? If yes you might have kown about the templates
I know this might sound easy. I thought about using the first dot(.) which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.