What a pity that Java not Include Operators overloading,Wake up



it's very ugly to write code like this: if (s.equal("Hello")) instead
if(s=="Hello")
the most time we do == for string we mean to content not for pointer!

Sun Guys Wake up, dot leave us alone with battles against C# Guys!! We
want it Now on Java

if you want to not admit with this mistake, continue talk about the
complicity of "Operators overloading"
the Java is best, but do it!
.



Relevant Pages

  • Re: java.util.Properties extending from HashMap instead of HashMap
    ... It's sort of useless to speculate why Sun did that, since everyone over there admits it was a mistake for Properties to inherit from Hashtable. ... Given the simplicity of the code fix, plus the ability to compile using "-source 1.4" until the source can be corrected, I would bet that Sun would consider the benefit of additional error checking to outweigh the inconvenience of source changes during the developer's transition to Java 5. ... You cannot make conclusions about how to use Provider based on Properties' documentation, and you cannot make conclusions about Properties based on Hashtable's documentation. ... either an or a <String, String> version, and the parameters are never cast - the raw type accepts Objects only. ...
    (comp.lang.java.programmer)
  • Re: Java String comparison
    ... but kinda new to Java... ... pointer type, such as pointer to string (although it is ... an empty string to indicate it is set but is empty. ...
    (comp.lang.java.programmer)
  • Re: Java String comparison
    ... but kinda new to Java... ... pointer type, such as pointer to string (although it is ... an empty string to indicate it is set but is empty. ...
    (comp.lang.java.help)
  • Re: pass by reference in java?
    ... the same in Java? ... the value (either pointer or primitive) is passed. ... not have pointers to primitives, ... For example if you pass a string into a function and then change the string ...
    (comp.lang.java.programmer)
  • Re: Cloning and Distinct Copies of Objects
    ... 11/780 Assembler class in the 1980s), so I find there's a lot of times that ... lot of dangerous baggage that C added to the concept of "pointer", ... Java forces its references to either be ... Why do you want to avoid sharing String objects? ...
    (comp.lang.java.help)