Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Graphics Movement?
Index -> Programming, Java -> Java Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Sat Oct 08, 2005 12:22 am   Post subject: (No subject)

rizzix wrote:
its counter-java way of getting things done. In java everything is part of an instance of a class or part of the class it self.. (with the only exception being primitives).. that's the philosophy!


Static imports don't change that. Smile

They just provide syntactic sugar to make using static fields and methods easier.

What about methods?

For instance, importing the sort method from Arrays and Collections.
Sponsor
Sponsor
Sponsor
sponsor
rizzix




PostPosted: Sat Oct 08, 2005 7:55 am   Post subject: (No subject)

yea but it's the syntataic sugar that drifts you away from the java-way-of-coding.. I'm not say to _never_ use it.. i can be very useful specially when porting like C-code to java.. as in OpenGL and stuff.
Aziz




PostPosted: Sat Oct 08, 2005 11:10 am   Post subject: (No subject)

It's like a duel... I have no more to say on this matter, but it would get confusing if you imported more than one 'white' member, wouldn't it?
wtd




PostPosted: Sat Oct 08, 2005 12:13 pm   Post subject: (No subject)

Aziz wrote:
It's like a duel... I have no more to say on this matter, but it would get confusing if you imported more than one 'white' member, wouldn't it?


The compiler would stop you.
[Gandalf]




PostPosted: Sat Oct 08, 2005 4:19 pm   Post subject: (No subject)

Thanks for the help Smile.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 20 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: