2

Java is the worst shit ever
This works:
int a = 4;
a *= 4.0;
This doesnt:
int a = 4 * 4.0;
:)))))))))))))
Makes sense

Comments
  • 3
    Java is the worst shit ever!
    I am comparing syntactical sugar for automatic conversion of numeric types to absolute nonsense :))))))))
  • 9
    Dont do operations on mixed types unless you want trouble. Those types will hunt you, they will find you and they will rape you.

    Make up your mind. Do you want to get a int or float? Those things are risky even for advanced coders.
    (I can debate about that if somebody disagrees)
  • 1
    @Gregozor2121 I wouldnt use it but it was at my college test. So thats why I was ranting
  • 0
    Because 4*4f is not an integer?
  • 1
    Also, i take it you use a 20 year old java, because the var keyword exists
  • 3
    This rant makes no sense.
  • 0
    In general avoid the "fake unary" operators in Java if you want to write code that is easy to understand. The logic behind how they work is fine. But it's not obvious to the newbie.
  • 4
    "Java is the worst shit ever!"
    -> doesn't know how primitive types and operators work
  • 0
    @ganjaman 4.0 is a double not a float
Add Comment