Basic Code Completion question

With the code below (see end of message), I cannot make any of the 3
code completions suggest me an implementing class for

List l = new |

Is this normal?
I expect IDEA to help me produce code like :
List l = new ArrayList ();


Changing the import line to
import java.util.*;
doesn't help much.


What's the proper way to use IDEA in this case?



-


Code
-



import java.util.List;

public class Spike
{
public static void main ( String[] args )
{
List l = new |
}
}

1 comment
Comment actions Permalink

CtrlShiftSpace (SmartType) prompts you with the interface
name. If you select it it will create an anonymous class
right there.

It would be nice if SmartType also listed all the classes
implementing this interface, but that list could be quite
large.

Marius

Alain Ravet wrote:

With the code below (see end of message), I cannot make any of the 3
code completions suggest me an implementing class for

List l = new |

Is this normal?
I expect IDEA to help me produce code like :
List l = new ArrayList ();


Changing the import line to
import java.util.*;
doesn't help much.


What's the proper way to use IDEA in this case?



-------------
Code
-------------

import java.util.List;

public class Spike
{
public static void main ( String[] args )
{
List l = new |
}
}


0

Please sign in to leave a comment.