Java
Have to instantiate an object in order to format a number?
http://www.memecreator.org/static/im...emes/92773.jpg Also, http://www.memecreator.org/static/im...emes/92766.jpg |
Re: Java
I get the feeling that you do not like Java.
|
Re: Java
Quote:
|
Re: Java
Quote:
|
Re: Java
Quote:
|
Re: Java
Quote:
Personally, I think that'd be a dumb way to do it, but meh. Anyway, I mentioned C# because it has .ToString overloads to do formatting on the various number types. Then again, all number types in C# are structs rather than primitives. |
Re: Java
I'm just not a huge fan of exclusively object-oriented programming.
I like my linear stuff... Or at least the ability to use objects if I so choose. Also, Code:
NumberFormat format = new NumberFormat("###.##"); PHP Code:
|
Re: Java
Quote:
Not surprisingly, you use objects for nearly everything except for operators and keywords. Quote:
Quote:
|
Re: Java
Quote:
Quote:
Don't have the library of Java memorized, nor do I intend to. I'd much rather go and learn C++. |
All times are GMT -4. The time now is 03:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.