This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to get byte of arralylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to get byte of arralylist" Watch "How to get byte of arralylist" New topic
Author

How to get byte of arralylist

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
I have a array list and want to get byte of it.


pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
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

Joined: Apr 02, 2008
Posts: 580
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

Joined: Feb 23, 2007
Posts: 1561
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

Joined: Apr 02, 2008
Posts: 580
The answer to this is easy: you can't do this


please give some reference for your point
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get byte of arralylist
 
It's not a secret anymore!