Quote:
Originally Posted by Dr. McKay
I'm just not a huge fan of exclusively object-oriented programming.
|
Java is entirely object-oriented with the exception of its primitive variable types. C# is entirely object-oriented.
Not surprisingly, you use objects for nearly everything except for operators and keywords.
Quote:
Originally Posted by Dr. McKay
Or at least the ability to use objects if I so choose.
PHP Code:
$formatted = number_format(100, 2);
|
Don't even get me started about PHP.
Quote:
Originally Posted by Dr. McKay
Code:
NumberFormat format = new NumberFormat("###.##");
String formatted = format.format(100);
|
As a side note, that class on the right side should be
DecimalFormat as
NumberFormat is an abstract class.
__________________