Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: missing import java.lang.Comparable Date: Thu, 7 Jul 2016 17:07:36 -0400 Organization: Aioe.org NNTP Server Lines: 30 Message-ID: References: <86lh1o4eku.fsf@kwarg.de> <11952827-9dd1-48e7-b835-722a38023ce5@googlegroups.com> <00835840-56aa-4ba2-b496-e364a62a38e8@googlegroups.com> <8668311a-503f-46b6-909c-dcbfbfc5ce19@googlegroups.com> NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34779 On 7/1/2016 2:45 AM, Andreas Leitgeb wrote: > Imho, Java lacks a feature that would allow one do assign local > aliases for fully qualified class names. something like: > import java.awt.List as AwtList; > > I seem to remember that other languages with hierarchical > namespaces do have such a feature. The following is valid C#: using SysConsole = System.Console; namespace E { public class Console { } public class Program { public static void Main(string[] args) { SysConsole.WriteLine("Testing"); SysConsole.ReadKey(); } } } Arne