Quantcast
Channel: Magnus K Karlsson
Viewing all articles
Browse latest Browse all 526

How do you import static in Eclipse?

$
0
0

When you press Ctrl+Shift+O new imports are added and organized. But that will not work for static imports.

But if you place the cursor on the static import method and press Ctrl+Shift+M, then it will be imported.

Example

Now place cursor on each static method and press Ctrl+Shift+M and it will look like.


Viewing all articles
Browse latest Browse all 526

Trending Articles