The type List is not generic; it cannot be parameterized with arguments

The type List is not generic; it cannot be parameterized with arguments < User & gt

Today, I wrote a list to report this inexplicable warning

[java]

view plain

copy

List< User> List = usermapper. Finduserbyname (“sheet”)

it is found that the packet is misdirected

[html]

view plain

copy

importjava.awt.List;

just change to util package

[html]

view plain

copy

importjava.util.List;

after working on Android for a long time, I suddenly became interested in this AWT package

There are many similarities between Android and Android

The description from JDK is as follows:

Contains all the classes used to create the user interface and draw graphical images

Description of software package java.awt

Contains all the classes used to create the user interface and draw graphical images. In AWT terminology, user interface objects such as buttons or scrollbars are called components. The component class is the root of all AWT components. For a detailed description of the common properties of all AWT components, see component

When users interact with components, some components fire events. The awtevent class and its subclasses are used to represent events that can be fired by AWT components. For a description of the AWT event model, see awtevent

A container is a component that can contain components and other containers. The container can also have a layout manager to control the visual layout of components in the container. The AWT package comes with several layout manager classes and an interface that can be used to build your own layout manager. For more information, see container and layoutmanager

Similar Posts: