Thread: Java
View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-13-2012 , 17:37   Re: Java
Reply With Quote #8

Quote:
Originally Posted by Dr. McKay View Post
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 View Post
Or at least the ability to use objects if I so choose.
PHP Code:
$formatted number_format(1002); 
Don't even get me started about PHP.

Quote:
Originally Posted by Dr. McKay View Post
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.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-13-2012 at 17:39.
Powerlord is offline