aspose file tools*
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 Java 8 in Action this week in the Java 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: 576
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: 576
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: 576
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
 
Similar Threads
generics Strike again !!!
generics
SequentialList extends AbstractList - implementing unmodifiable list
primitive types in collections
get Property-Field-Name via Reflection