File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jul 20, 2006
Jul 20, 2006 03:43:00
How can i make print the size of a data type in
? like the sizeof function in C?
Joined: Oct 30, 2001
Jul 20, 2006 03:55:00
You can't, except by hacky and unreliable methods. However, there are VERY few valid reasons for needing it. Why do you want it?
Search the forums for "sizeof" for more discussion.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Joined: Oct 02, 2003
Jul 20, 2006 07:14:00
to quote Bert and Kathy, "Java is NOT C".
there are many things you can do in C that you can't do in java. and mostly, that's a good thing. Many of the things Sun got rid of are the things that caused all KINDS of headaches.
If you have a problem you're trying to solve, post that and we can help you find a good way to do it.
if you are just curious, well, sometimes there are little mysteries in live that we won't ever solve.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: data types
wordings for error message
JTree and JTable
PrintWriter vs OutputStream
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015