Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get byte of arralylist

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a array list and want to get byte of it.


 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a array list and want to get byte of it.


Can you clarify your question please? The statement "get byte of it" doesn't make sense to me.
 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you clarify your question please? The statement "get byte of it" doesn't make sense to me.


I have a array list (Ex:lst) and want to pass the same to a some method as a byte ,


 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jacob deiter wrote:
Can you clarify your question please? The statement "get byte of it" doesn't make sense to me.


I have a array list (Ex:lst) and want to pass the same to a some method as a byte ,


The answer to this is easy: you can't do this. Again, it makes no logical sense.
 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to this is easy: you can't do this


please give some reference for your point
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jacob deiter wrote:
The answer to this is easy: you can't do this


please give some reference for your point


What do you mean reference for my point? You are trying to pass an ArrayList as a byte to a method. ArrayLists are complex objects that are backed by an array of reference types, and there is no way that this can be described as a byte or an array of bytes. Again, this makes no sense to me. Do you mean to serialize the ArrayList? If so, please say so. Perhaps it's me, but you seem to be hiding from us important details of your problem that would allow us to answer your question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic