Wednesday, April 24, 2013

Importing constants & methods from other java class

It a nice syntax feature:

Importing static variables:

import static com.xxxx.yyy.className.variableName;


Importing static methods:

import static org.junit.Assert.*;

No comments:

Post a Comment