Hacker News new | past | comments | ask | show | jobs | submit login

In Java:

    import org.somelib.colors.*

    x = new RGBA(255, 255, 255, 0);
where RGBA is some class defined in the org.somelib.colors package.



I think they're looking for:

  import org.somelib.*

  x = new colors.RGBA(255, 255, 255, 0);
So you don't have to bring all the classes into scope, but you don't have to write out the full path to use them either. Just the last bit of the package-name as a qualifier.


In C# that'd be:

  using colors = org.somelib.colors;
I don't know if Java has something similar.


It doesn't.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: