Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Re: Lazy Thursday Question: Weird Syntax You've Seen?

    And who can forget the abuse of =, +=, ++/--, ... etc?

    public static void main(String[] args)
    {
    int a = 1, b = 2, c = 3;
    c += b = a++;
    System.out.println(a + " " + b + " " + c);
    }
  2. Re: Lazy Thursday Question: Weird Syntax You've Seen?

    Not necessarily weird syntax, but an abuse of Java's arrays to get pass-by-reference(ish) for primitives:

    public class PrimitivesAbuse
    {
    public static int factorial(int n, boolean[] success)...
  3. Re: Lazy Thursday Question: Weird Syntax You've Seen?

    I remember Json posting some funny allowable names for classes/fields/methods.

    http://www.javaprogrammingforums.com/java-code-snippets-tutorials/874-general-cs-concepts-post4807.html#post4807
    ...
Results 1 to 3 of 3