Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to print out # of bytes used  RSS feed

 
E Fox
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a method I can use to determine how much space a vector is taking up? For a program I have to write I need to print out how many bites my vector uses after inserting keys into it.
Thanks
E Fox
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36432
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the objects in your Vector implement java.io.Serializable:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!